Branch | Status |
---|---|
master | |
develop |
Installation:
> npm install --save @athombv/stream-trim
To trim an input stream from byte 5 until 11, do the following (test.js):
import StreamTrim from '@athombv/stream-trim';
const trim = new StreamTrim({ start: 5, end: 12 });
process.stdin.pipe(trim).pipe(process.stdout);
Try it out:
echo "This is a test" | node test.js
is a te