Require files in a folder and turn them into an object. Especially made for our awesome expressjs boilerplate.
npm install anytv-node-importer --save
import importer from 'anytv-node-importer';
const imports = importer.dirloadSync('./controllers');
Code documentation can be found at here.
Install the tools needed:
npm install babel -g
npm install esdoc -g
npm install mocha -g
npm install --dev
To compile the ES6 source code to ES5:
npm run compile
To generate the docs:
npm run docs
npm test
npm run coverage
Then open coverage/lcov-report/index.html.
MIT