Skip to content

Node module similar to require but allowing usage of external directory

Notifications You must be signed in to change notification settings

idcware/node-require-externaldir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

reqexd

Equivalent of require, but in another dir than node_modules to be able to version custom modules.

Usage

Default include dir is "includes":

var reqexd = require('reqexd');

// foo is located at ../...../includes/foo
var foo = reqexd('foo');

Change the include dir:

var reqexd = require('reqexd');
reqexd.include_dir = "bar";

// foo is located at ../...../bar/foo
var foo = reqexd('foo');

license

MIT

About

Node module similar to require but allowing usage of external directory

Resources

Stars

Watchers

Forks

Packages