Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    require-starspublic

    Require Stars

    Build Status

    Requires entire directories with one call to require.

    How to install

    npm install require-stars
    

    How to run the tests

    npm 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);
    

    Keywords

    none

    install

    npm i require-stars

    Downloadsweekly downloads

    15

    version

    0.0.5

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar