Includes all modules within it's directory as an export.
The module-index module will include all it's sibling modules and return them as an export.
$ npm install module-index
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/index.jsvar controllers =app = ;app;app;// ...
Infact... you can entirley skip out making a new file:
// app/index.jsvar controllers = './controller';