Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

highland-process

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

highland-process

Utility that lets you turn a process into a highland stream.

latest
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

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
});

Keywords

highland

FAQs

Package last updated on 17 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts