UNPKG

kefir-process

Version:

Using kefir to create communicating processes.

9 lines (6 loc) 228 B
var toKefir = require('kefir-node-stream') toKefir(process.stdin) .map(function (buf) { return buf.toString() }) .map(Number) .map(function (n) { return n + 1 }) .onValue(function (n) { process.stdout.write('' + n) })