buffer-file-stream
Write each buffer chunk to an individual file with an incrementing file name.
Useful for dumping an upstream stream to a series of files.
Installation
This module is installed via npm:
$ npm install buffer-file-stream
Example Usage
Write all new Buffer
data chunks to incrementing files:
var bufferFileStream = ;// writes all Buffer 'data' chunks to blah-000.txt, blah-001.txt, etc// uses sprintf syntax for patternvar bfs = ;bfs;// creates a text file /tmp/blah-000.txt with the text 'hello'bfs;// creates a text file /tmp/blah-001.txt with the text 'world'