0.0.7 • Published 9 years ago
anytv-node-importer v0.0.7
anytv-node-importer
Require files in a folder and turn them into an object. Especially made for our awesome expressjs boilerplate.
Install
npm install anytv-node-importer --saveUsage
Importing all files in a folder
import importer from 'anytv-node-importer';
const imports = importer.dirloadSync('./controllers');Documentation
Code documentation can be found at here.
Contributing
Install the tools needed:
npm install babel -g
npm install esdoc -g
npm install mocha -g
npm install --devTo compile the ES6 source code to ES5:
npm run compileTo generate the docs:
npm run docsRunning test
npm testCode coverage
npm run coverageThen open coverage/lcov-report/index.html.
License
MIT