dat-binary-encoder
v1.1.0
Published
Binary encoder/decoder for a dat changes feed
Downloads
10
Readme
dat-binary-encoder
Binary encoder/decoder for a dat changes feed
npm install dat-binary-encoder
Usage
To encode a changes feed
var enc = require('dat-binary-encoder')
db.createChangesReadStream()
.pipe(enc.encode())
.pipe(someWritableStream)
And to decode a changes feed
someReadableStream
.pipe(enc.decode())
.pipe(db.createChangesWriteStream())
License
MIT