indexport
Node's index.js
modules made DRYer. Just export all the modules in a directory in one sentence.
Not clear enough? Ok, let me give you an example:
Instead of writting the following index.js
file:
moduleexports = moduleA: moduleB: moduleC: moduleD: ...
With indexport
you can do:
moduleexports = __dirname
Conclusion: the exported interface are exactly the same.
Installation
npm install indexport --save
Usage
In your index.js
JS file:
moduleexports = __dirname
API
object
indexport(directory) => Returns an object map with the exported modules.
License
MIT - Tomas Aparicio