0.0.5 • Published 11 years ago

require-stars v0.0.5

Weekly downloads
24
License
-
Repository
github
Last release
11 years ago

Require Stars

Requires entire directories with one call to require.

How to install

npm install require-stars

How to run the tests

node ./test

How to use

Require shallow directory

require('require-stars')();

requrie('./myDir/*');

Require recursivley:

require('./myDir/**');

Enumerate directory exports:

var list = [],
    flat = {};

require('require-stars/enum')(require('./myDir/**'), function (exports, name, path, obj) {
	list.push(exports);
	flat[path] = exports;
}, this);
0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

12 years ago