Socket
Book a DemoInstallSign in
Socket

@brandonocasey/spawn-promise

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brandonocasey/spawn-promise

A wrapper around spawn that returns a promise with the similar output to spawnSync.

0.2.0
latest
Source
npmnpm
Version published
Weekly downloads
269
76.97%
Maintainers
1
Weekly downloads
 
Created
Source

@brandonocasey/spawn-promise

A wrapper around spawn that returns a promise with the similar output to spawnSync.

  • Installation
  • Usage
  • Support

Installation

Install @brandonocasey/spawn-promise and in-publish via npm

$ npm install --save-dev @brandonocasey/spawn-promise in-publish

Usage

Similar to child_process.spawnSync except we return a promise and use child_process.spawn internally. See the return value of childProcess.spawnSync for what the promise will be resolved with. In addion to the usual return values we also add in stdin and combined. combined is mixed stdout/stderr output.

Support

Currently we support 1 to 1 the spawn API from child_process, but signals, killing, and stdin support has not been tested.

Keywords

promise

FAQs

Package last updated on 18 Aug 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.