1. @brandonocasey/spawn-promise
A wrapper around spawn that returns a promise with the similar output to spawnSync.
@brandonocasey/spawn-promise
Package: @brandonocasey/spawn-promise
Created by: brandonocasey
Last modified: Mon, 04 Apr 2022 20:25:25 GMT
Version: 0.2.0
License: Apache-2.0
Downloads: 609
Repository: https://github.com/brandonocasey/spawn-promise

Install

npm install @brandonocasey/spawn-promise
yarn add @brandonocasey/spawn-promise

@brandonocasey/spawn-promise

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

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.

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code