glob-require
Use glob to find and call require
on all matching files in a directory tree.
Installation
npm install --save glob-require
Usage
- Install using npm:
npm install glob-require
- Include it in your source:
const globRequire = ; // simple case, pass in a subdirectory to include to// search for and require all .js files.;
const globRequire = ; // advanced case, pass a 'glob' pattern and configuration object.// See https://github.com/isaacs/node-glob#options for a list of options.;
Run the tests
npm test
Get involved:
If you find a bugs or see any features you wish to add, file an issue or submit a pull request!
Repo information:
https://github.com/shane-tomlinson/glob-require
Author:
- Shane Tomlinson
- shane@shanetomlinson.com
- stomlinson@mozilla.com
- set117@yahoo.com
- https://shanetomlinson.com
- https://github.com/shane-tomlinson
- @shane_tomlinson
License:
This software is available under version 2.0 of the MPL: