interpose

1.0.0 • Public • Published

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'

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i interpose

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • sonewman