Skip to content
Read a number of files in bulk, asynchronously
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test done
.gitignore
Makefile
README.md first commit
index.js first commit
package.json

README.md

node-read-bulk

Just a little helper module to save some time.

Installation

npm install read-bulk

Usage

var bulk = require('read-bulk');

bulk.readFiles(['file', 'names'], function(err, files) {

    // Loop over each file.
    files.each(function(contents) {
        console.log(contents);
    });

    // Return a specific file by filename
    files.get('file');
    files.get('names');
});
Something went wrong with that request. Please try again.