2.2.1 • Published 6 years ago
require-plus v2.2.1
require-plus
Node module for requiring a directory tree, it will throw if not a valid directory and it will also throw if the object is not exported properly or cannot be required by require.
##Installation
npm install require-plus
##Usage
const options = {
blacklist: ['node_modules', '.git', '.idea'],
extensions: ['.js','.json'],
directory: ['./test', './some/path', './some/other/path'] // can be a string or an array
};
const plus = require('require-plus')(options);
console.log(plus);
//plus is an object containing modules exported from above directories
##Todo
100% code coverageHandle require errors better- Add silent error handling option to not throw if something cannot be required by require
2.2.1
6 years ago
2.2.0
6 years ago
2.1.2
8 years ago
2.1.1
8 years ago
2.1.0
8 years ago
2.0.0
8 years ago
1.5.0
9 years ago
1.4.1
9 years ago
1.4.0
9 years ago
1.3.1
9 years ago
1.3.0
9 years ago
1.2.0
9 years ago
0.1.1
9 years ago
0.1.0
9 years ago
0.0.9
9 years ago
0.0.8
9 years ago
0.0.7
9 years ago
0.0.6
9 years ago
0.0.1
9 years ago
1.1.0
9 years ago
1.0.2
9 years ago
1.0.1
9 years ago
1.0.0
9 years ago