Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spawn-promise

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spawn-promise

Spawns a process and makes it simple to pipe data in and get data out.

  • 0.1.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

spawn-promise

Spawns a process and makes it simple to pipe data in and get data out.

npm version npm license Travis David npm downloads

Installation

npm install spawn-promise

Usage

var spawn = require(spawn-promise);

spawn('grep', ['H'], 'Hello').then(function (buffer) {
  console.log(buffer.toString()); // Hello
});

API

  • spawn

spawn ( command [, args] [, input] )

Spawns a child process with the given command, writes the input value to stdin, and returns a Promise that is fulfilled with the concatenated stdout buffer.

Arguments

  • command - The command to run.
  • args - An array of arguments to run the command with.
  • input - The value to write to stdin.

FAQs

Package last updated on 08 Mar 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc