0.0.0 • Published 6 years ago
chop-delimited-stream v0.0.0
chop-delimited-stream
Get it!
npm install --save chop-delimited-stream
Usage
var chop = require('chop-delimited-stream')
var choppa = chop(Buffer.from('chop')) // delimiter must be a buffer
process.stdin.pipe(choppa).pipe(process.stdout)
API
chop([delimiter][, trailing])
Create a new choppa stream. delimiter
must be a buffer, defaults to: 00 04 01 09 04 01 09 00
. trailing
indicates whether to flush any non-delimited chunks at the end of the stream, defaults to false
.
License
0.0.0
6 years ago