Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

anytv-node-importer

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Issues
File Explorer

Advanced tools

anytv-node-importer

Require all files in directory

    0.0.7latest
    GitHub

Version published
Maintainers
1
Weekly downloads
562
decreased by-16.12%

Weekly downloads

Readme

Source

anytv-node-importer

Build Status Coverage Status Documentation Dependencies npm version

Require files in a folder and turn them into an object. Especially made for our awesome expressjs boilerplate.

Install

npm install anytv-node-importer --save

Usage

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 --dev

To compile the ES6 source code to ES5:

npm run compile

To generate the docs:

npm run docs

Running test

npm test

Code coverage

npm run coverage

Then open coverage/lcov-report/index.html.

License

MIT

Author

Freedom! Labs, any.TV Limited DBA Freedom!

Keywords

FAQs

Last updated on 09 Sep 2016

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.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc