Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hughsk/node-read-bulk

Read a number of files in bulk, asynchronously
https://github.com/hughsk/node-read-bulk

Last synced: 8 days ago
JSON representation

Read a number of files in bulk, asynchronously

Awesome Lists containing this project

README

        

# 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');
});