0.0.2 • Published 10 years ago

thot-local-require v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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');
0.0.2

10 years ago

0.0.1

10 years ago