node-streamcutter
cut a streams start, end and length
Usage
remove the first and last 10 bytes from a stream
const streamCutter = ;const fs = ; const noStartNoEnd = start: 10 end: 10;<stream>;noStartNoEnd;
API
new streamCutter([options[, transformerStreamOptions]])
- options typeof Object
- options.end
- typeof number
- how many bytes to trim from the end
- options.start
- typeof number
- how many bytes to trim from the start
- options.length
- typeof number
- how many bytes it should be long
- options.debug
- typeof boolean
- enable debug logs
- options.end
- transformerStreamOptions
Install
npm install --save streamcutter
License
MIT