Skip to content

node module: imagine the `require` command to import your files, without having to specify the full path

Notifications You must be signed in to change notification settings

gdonelli/use-require

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

use-require

Imagine the require command to import your files, without having to specify the full path

Setup

You need to specify where to find your libraries, as soon as your app starts:

require('use-require').setup([ <TheDirectoryContainingYourCode> ]);

for example:

require('use-require').setup([ __dirname + '/code' ]);

Usage

Once the module is setup, it creates a global function use which can be used to include your own modules.

for example:

var mylib = use('mylib');

About

node module: imagine the `require` command to import your files, without having to specify the full path

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published