0.1.6 • Published 11 years ago

batch-write-stream v0.1.6

Weekly downloads
522
License
-
Repository
github
Last release
11 years ago

batch-write-stream

Build Status

Install

$ npm install batch-write-stream --save

Use

Require

var BatchWriteStream = require('batch-write-stream');

Create

var stream = BatchWriteStream();

Or, with options:

var options = {
  highWaterMark: 100,  // default
  maxConcurrentBatches: 1 // default
};

var stream = BatchWriteStream(options);

Implement _writeBatch

stream._writeBatch = function(batch, cb) {
  // batch is an array
  // call cb when done
}

License

MIT

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago