1.0.5 • Published 9 years ago

highland-process v1.0.5

Weekly downloads
377
License
MIT
Repository
-
Last release
9 years ago

Highland Process

Turn a process into a highland stream or pipe through a process.

Install

npm install highland-process

Usage

var _ = require('highland');
var highlandProcess = require('highland-process');
var spawn = require('child_process').spawn;
var tee = spawn('tee');
var ls = spawn('ls');

_(['hello how are you?'])
.through(highlandProcess.through(tee))
.pull(function(error, value) {
  // value is a buffer with "hello how are you?" that has been piped through tee
});

highlandProcess.from(ls)
.split()
.toArray(function(values) {
  // each line of output from ls
});
1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago