requirem
Tiny, require 'em things with knobs.
Unicorn approval pending.
usage
var requirem = ; // works with no arguments,var myProject = ; // equivalent to require('./.') from any dir // for directories,var dirExports = ;var dirExports = ; // and modulesvar util = ;// if ./lib/utils is a module // it will be required as so even if it was a directory // exports are camelkeyedvar dirExports = ; // ./routes was a directory but not a module// {// userAdmin : [Function] file was "user-admin.js"// userSomething : [Function] file was "user.something.js"// } // filters via regexpvar headerExports = ;var headerExports = ;// {// headerHome : [Function]// headerSomething : [Function]// } // reload option cleans the require.cachevar gaze = 'gaze';gaze;
~ 50 SLOC
install
$ npm install --save requirem
test
$ npm test