highland-through-process
v1.0.0
Published
Utility that lets you pipe a highland stream through a process' stdin / stdout.
Downloads
3
Readme
Highland Through Process
Utility that lets you pipe a highland stream through a process' stdin / stdout.
Install
npm install highland-through-process
Usage
var _ = require('highland');
var throughProcess = require('highland-through-process');
var spawn = require('child_process').spawn;
var tee = spawn('tee');
_(['hello how are you?'])
.through(throughProcess(tee))
.pull(function(error, value) {
// value is a buffer with "hello how are you?" that has been piped through tee
});