Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hughsk/node-read-bulk
- Owner: hughsk
- Created: 2012-03-07T08:57:52.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-03-07T08:58:54.000Z (over 12 years ago)
- Last Synced: 2024-10-17T16:38:06.232Z (22 days ago)
- Language: JavaScript
- Homepage:
- Size: 89.8 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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');
});