module-index
The module-index module will include all it's sibling modules and return them as an export.
Installation
$ npm install module-index
Example
Say you have a directory structure like so:
- app/
- controllers/
- welcome.js
- blog.js
- contact.js
- index.js
Then the you can access all the controllers by adding a controllers/index.js
file like so:
// app/controllers/index.jsmodule;
// app/index.jsvar controllers = app = ; app;app;// ...
Infact... you can entirley skip out making a new file:
// app/index.jsvar controllers = './controller';