2.2.1 • Published 7 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
7 years ago
2.2.0
7 years ago
2.1.2
9 years ago
2.1.1
9 years ago
2.1.0
9 years ago
2.0.0
10 years ago
1.5.0
10 years ago
1.4.1
10 years ago
1.4.0
10 years ago
1.3.1
10 years ago
1.3.0
10 years ago
1.2.0
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago
0.0.9
10 years ago
0.0.8
10 years ago
0.0.7
10 years ago
0.0.6
10 years ago
0.0.1
10 years ago
1.1.0
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago