Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

chop-delimited-stream

0.0.0 • Public • Published

chop-delimited-stream

build status AppVeyor Build Status


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

MIT

Install

npm i chop-delimited-stream

DownloadsWeekly Downloads

1

Version

0.0.0

License

MIT

Unpacked Size

8.36 kB

Total Files

9

Last publish

Collaborators

  • avatar