include-js
v0.0.0
Published
Provides inclusion functionality for nodeJS based on class and "namespace".
Downloads
1
Readme
include-js
This small library provides support for "better local require" in node.js.
Key features
- inclusion of files relative to project root;
- inclusion of files relative to library root;
- custom include paths;
Usage
require('include-js')(/* optional config */);
global.include('file/in/my/project');
global.include('file/in/some/library');
global.include('./standard/nodejs/inclusion');
global.include('standard-nodejs-inclusion-of-library');
Configuration
includePaths
-string[]
, array of paths where files should be searched;nodeModulesPath
-string
, path to "node_modules" directory;