A slightly more concise API for child_process.spawn()
.
This module exports one function:
Basically the same interface as child_process.spawn()
, except:
- When
prog
is false-y, do nothing and just returnfalse
.- This is meant to save you an if statement and repetition of the
config lookup code when your program's config has an optional
setting for a notification command.
Example:
spawn(process.env.coolserver_notify_listening);
- This is meant to save you an if statement and repetition of the
config lookup code when your program's config has an optional
setting for a notification command.
Example:
opt.detached
istrue
by default.- When
opt.detached
, a missing or false-yopt.stdio
means'ignore'
. - When
args
is false-y,opt.shell
defaults totrue
.
- Needs more/better tests and docs.
ISC