fl0w

0.1.1 • Public • Published

fl0w

Build Status

Flow control for Node streams.

Usage

npm install fl0w
// test.js
var _ = require('highland')
  , when = require('fl0w/when');

function length(s) {
  return s.trim().length;
}

_(process.stdin)
  .splitBy(' ')
  .through(when(length, {
    4: _().invoke('toUpperCase')
  }))
  .intersperse(' ')
  .pipe(process.stdout);
~ $ echo "My name is Luka" | node test.js
My NAME is LUKA

Readme

Keywords

none

Package Sidebar

Install

npm i fl0w

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • protomouse