1.0.10 • Published 5 years ago
kc-rwalk v1.0.10
RWalk (Node only)
Require modules in path. Modules must be on their own folder and must have the folder's name.
Returns an object with the modules.
For example: my_path/module1/module1.js my_path/module2/module2.js
Install
npm install kc-rwalk
Use
var rwalk = require('kc-rwalk');
var mods = rwalk('my-dir');
console.log(mods);
// Exec
mods.mod1();