LevelUP Write Stream compatible with streams2
npm install level-writestream

> Streams2-compliant write stream for LevelDB
``bash`
$ npm i level-writestream --save
(also install level if you haven't already:
`bash`
$ npm i level --save
)
`javascript`
var LevelWriteStream = require('level-writestream');
`javascript`
var db = level('/path/to/level/db/dir');
LevelWriteStream(db);
`javascript
var ws = db.createWriteStream();
ws.write({key: 'A', value: 'B'}, function(err) {
if (err) throw err;
});
source.pipe(ws);
ws.once('finish', function() {
console.log('finished');
});
`
You can use the same options as in the LevelUP API plus all the streams2 API conventions.
`bash`
$ tests/benchmarks/old/run
`bash``
$ cd tests/benchmarks
$ ./run
MIT