Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Read a number of files in bulk, asynchronously
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
Makefile
README.md
index.js
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.