node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


supervise a single child process


npm install --save lib-supervise
var supervise = require('lib-supervise');
var job = supervise({
  exec: 'node',
  args: ['server.js']
job.on('run', function start(proc) {
  console.log("----> job",;
job.on('die', function fault(code, signal) {
  console.log("----> die", code, signal);
job.on('end', function finish() {
  console.log("----> end");
  1. supervise always creates pipes to the child process, so you should do something with them
  2. child process error events are caught and send to job.error