thot-local-require

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i thot-local-require

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • thotjs