pipe

1.1.0 • Public • Published

build-status

SYNOPSIS

Provides pipes by operator instead of a chain.

DESCRIPTION

Pipe streams together with a simpler syntax, like a | b | c

EXAMPLES

pipe does not require through, i just like using through.

var through = require('through')
require('pipe').install()
 
var a = through(function(d) {
  this.queue(d.toString().toUpperCase())
})
 
var b = through(function(d) {
  this.queue(d.split('-').join(','))
})
 
var c = through(function(d) {
  this.queue(d.split(',').reverse().toString())
})
 
| b | c | process.stdout
 
a.write('a-s-d-f') // OMG WTF? => F,D,S,A

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    380
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    380
  • 1.0.0
    0
  • 0.0.3
    1
  • 0.0.2
    6,285
  • 0.0.1
    1,075

Package Sidebar

Install

npm i pipe

Weekly Downloads

7,741

Version

1.1.0

License

MIT

Last publish

Collaborators

  • hij1nx