Dead simple process manager with few features (features cli & programmatic use)
npm install -g lilpids
It can either be used as a cli-tool (see
Otherwise, it also can be used programmatically.
var lilpids =var stream$ =stream$stream$stream$
It'll watch the stream so every time you pipe an update, old processes no longer referenced in the update will be shutdown and any new ones will be spawned.
lilpids will forward all stdout, stderr to its own stdout, stderr prefixed with the process id.
It will also tell you when a command has been spawned, exited and finally it will restart processes when they crash/end.
lilpids will also push an array of the pids of the current running processes to the stream every time there is a change, so you can listen for them