thot-local-require
v0.0.2
Published
Allows the requiring of files local to the applications root
Downloads
1
Readme
thotjs-local-require
Allows the requiring of files local to the applications root
Usage
npm install --save thotjs-local-require
var locale = require('thotjs-local-require');
local('path/to/local/file');
require('path/to/regular/files');
You may also assign the module so that the function is global, although this shouldn't be used in libraries as your users may not like having methods added to the global scope.
global.localRequire = require('thotjs-local-require');