Promisified process spawner for node or chrome native messenger. Chrome native messenger must be installed and called from a paired chrome extension. With stdin support and optional stderr redirect to stdout.


Keywords
guld, node
License
MIT
Install
npm install guld-spawn@2.0.4

Documentation

guld-spawn

source issues documentation

node package manager travis-ci lgtm david-dm david-dm

Promisified process spawner for node or chrome native messenger. Chrome native messenger must be installed and called from a paired chrome extension. With stdin support and optional stderr redirect to stdout.

Install

Node
npm i guld-spawn

Usage

const {getSpawn, nodeSpawn, chromeSpawn} = require('guld-spawn')

// either nodeSpawn or chromeSpawn depending on environment
var spawn = getSpawn()

// note: this is not an async function, for brevity
var stdout = await spawn('ledger', '', ['.f', 'ledger.dat', 'bal'])

License

MIT Copyright isysd public@iramiller.com