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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    3

Package Sidebar

Install

npm i thot-local-require

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • thotjs