The stupid dash in the name was because
beehive is another package
I hadn't known existed before starting this. Yeah, lessons learned, thanks.
BEE-HIVE lets you launches, tag, monitor and manage multiple node.js ChildProcess(es) with ease.
Install and put in your package.json with:
$ npm install bee-hive --save
!!! Not to be confused with the
beehive (without the dash) package !!!
Creates a new
Hive to manage your process.
Launch a process and give it a tag for later reference.
Gets the wrapped ChildProcess object from the hive.
Returns all the tags in the hive.
Returns all the processes launched via the hive.
Removes a tagged process from the hive. Does not kill the process.
Removes all processes from the hive. Does not kill any process.
Sends the tagged process the given kill signal. Signal defaults to node's child.kill() defaults.
Kill all processes in the hive with the given signal.
Bee class, which is what is used by the hive to wrap node.js native ChildProcess object.
Wraps the given node.js native ChildProcess object.
Bee wraps ChildProcess's stdin, stdout and stderr in a
PeekStream which provides
window property that has the last few bytes that was emitted
from the stream.
Very handy for logging and instrospection. i.e. see the last few lines from stderr when the process dies.
Otherwise the stream should behaves the same as any ChildProcess stream.
Bee listens for ChildProcess's
exit event automatically
on wraps and will set this property to
when the event happens.
A new bee should have an
open state initially.
The originally wrapped process.
Pull requests also welcome! :)