Skip to content

sonewman/interpose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interpose

Install:

$ npm install --save interpose

Interpose streamed data between a start or end token.

new Interpose(start, end) | new Interpose({ start: start, end: end })

The constructor can take start and end tokens or an options object containing stream options and start and end

Using is simple:

var Interpose = require('interpose')
var wrap = new Interpose('wrap ', ' up')

inputStream.end('some data')

inputStream
  .pipe(wrap)
  .pipe(process.stdout)
  // -> 'wrap some data up'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published