2.2.1 • Published 7 years ago

require-plus v2.2.1

Weekly downloads
4
License
BSD-3-Clause
Repository
github
Last release
7 years ago

require-plus

build status Current Version dependency Status devDependency Status Coveralls

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 coverage
  • Handle 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