just_include
v0.2.1
Published
To include private modules outside of the node_modules directory
Downloads
4
Readme
just_include
========================
NodeJS Module to Include private modules.
Installation
npm install just_include --save
For this to work, DO NOT CALL WITH VAR! It then creates a global function available in any file.
It also must be initiated within the main JS file.
Usage
main.js
just_include = require('just_include')(__dirname);
var helloWorld = just_include('helloWorld');
helloWorld();
main.js (If modules are not in a 'modules' folder, we can specify a custom folder)
just_include = require('just_include')(__dirname,'private')
var helloWorld = just_include('helloWorld');
helloWorld();
Test
npm test
Release History
- 0.1.0 Initial History
- 0.1.1 Styling changes.
- 0.1.4 Still doing styling changes.
- 0.1.5 Trying to publish....
- 0.1.6 More spelling mistakes....
- 0.1.7 Only odd get published?
- 0.1.8 Maybe even even do...
- 0.2.1 Still changing the README