nsLoader - Node.js namespace loader
nsloader is a small utility that allows using namespaces for requires.
Installation
$ npm install nsloader
Usage
var loader = ; loader;
Then the equivilant of:
var something = ;var something = ;var something = ;
would be:
var something = loader;
Example
A real world example could be:
var path = fs = loader = ; // Allow access to the mymodule index file.loader; // Allow access to anything after 'mymodule'.loader;
Testing
A mocha test suite has been provided and can be run by:
$ npm test