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 run coverage
Then open coverage/lcov-report/index.html.
Require all files in directory
The npm package anytv-node-importer receives a total of 458 weekly downloads. As such, anytv-node-importer popularity was classified as not popular.
We found that anytv-node-importer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.