Skip to content

node.js transform stream to trim bytes from an input stream

Notifications You must be signed in to change notification settings

athombv/node-stream-trim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-stream-trim

Branch Status
master ESLint Test
develop ESLint Test

Usage

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

About

node.js transform stream to trim bytes from an input stream

Resources

Stars

Watchers

Forks

Packages