batch-require
Sometimes we wanna load a batch of module in a directory. When you have such demand, batch-require gives you a good choice.
How to use
├─long_modules
│ path_1_module.js
│ path_2_module.js
│ path_3_module.js
│
├─mocha
│ test.js
const path = const expect = ;const batchRequire = ; { for const key in item thiskey = item; } const modules = ;tohave;tobean;
API
See the api document.