{"_id":"supervisord-eventlistener","_rev":"8-70cfc7fededce299cc99b7fd5694476a","name":"supervisord-eventlistener","description":"Listens for events from supervisord and emits them","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.1":{"name":"supervisord-eventlistener","version":"0.0.1","description":"Listens for events from supervisord and emits them","keywords":["supervisord"],"author":{"name":"Sugendran Ganess"},"repository":{"type":"git","url":"git://github.com/sugendran/node-supervisord-eventlistener.git"},"main":"index.js","engine":"node >= 0.4.1","_npmUser":{"name":"sugendran","email":"sugendran@sugendran.net"},"_id":"supervisord-eventlistener@0.0.1","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.1","_defaultsLoaded":true,"dist":{"shasum":"ff9ad1a2d39b7423a6b512af67105287e863ffec","tarball":"https://registry.npmjs.org/supervisord-eventlistener/-/supervisord-eventlistener-0.0.1.tgz","integrity":"sha512-6acrl/xGsXRkWf2spzrxG7EuzIgIfV2msOXOKsJWI/GVQ8G9h3u98bC5OGC15c7JVmqqegMDNEB3HAc5JY/kIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzgPeK7zpcqVO3H4chTLrqd7QJKTevG6sQUit9ZG8dKgIhAJ609o1qJ5zd64C8ovOLF4i9jDoeIvT4z7Bb184/C0ff"}]},"maintainers":[{"name":"sugendran","email":"sugendran@sugendran.net"}]},"0.1.0":{"name":"supervisord-eventlistener","version":"0.1.0","description":"Listens for events from supervisord and emits them","keywords":["supervisord"],"author":{"name":"Sugendran Ganess"},"contributors":[{"name":"Blake Miner","email":"miner.blake@gmail.com"}],"repository":{"type":"git","url":"git://github.com/sugendran/node-supervisord-eventlistener"},"main":"index.js","engine":"node >= 0.4.1","_id":"supervisord-eventlistener@0.1.0","dist":{"shasum":"a2499d82d22a1d2ab84d6968b70b373dfb90e4d0","tarball":"https://registry.npmjs.org/supervisord-eventlistener/-/supervisord-eventlistener-0.1.0.tgz","integrity":"sha512-DbeQtZ17J8ADZZp2cVSIYQUiwlM82TNcwha3P0H1+zNN9/+q0vRQ99r1it3VY2dPMVd5JwGqdMb5ClhRjD9lwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB53a3K+ebcMk/10/NEOTgFo+Ec6+Dk8HjxlmSfzvjJAAiEAgy4bO/cc7A/m592N33GBCsdce6J3qVGY+4TOBnzN9dw="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"sugendran","email":"sugendran@sugendran.net"},"maintainers":[{"name":"sugendran","email":"sugendran@sugendran.net"}]},"0.2.0":{"name":"supervisord-eventlistener","version":"0.2.0","description":"Listens for events from supervisord and emits them","keywords":["supervisord"],"author":{"name":"Sugendran Ganess"},"contributors":[{"name":"Blake Miner","email":"miner.blake@gmail.com"}],"repository":{"type":"git","url":"git://github.com/sugendran/node-supervisord-eventlistener.git"},"main":"index.js","engine":"node >= 0.4.1","gitHead":"a617079baeac7af3d7c35967c5cb0f1d7b5a8f2d","bugs":{"url":"https://github.com/sugendran/node-supervisord-eventlistener/issues"},"homepage":"https://github.com/sugendran/node-supervisord-eventlistener#readme","_id":"supervisord-eventlistener@0.2.0","scripts":{},"_shasum":"4bea9946480f6d86cf9e373c2625fe6e40e07cc8","_from":".","_npmVersion":"3.3.4","_nodeVersion":"5.12.0","_npmUser":{"name":"bminer","email":"miner.blake@gmail.com"},"maintainers":[{"name":"sugendran","email":"sugendran@sugendran.net"}],"dist":{"shasum":"4bea9946480f6d86cf9e373c2625fe6e40e07cc8","tarball":"https://registry.npmjs.org/supervisord-eventlistener/-/supervisord-eventlistener-0.2.0.tgz","integrity":"sha512-uyMNpmGghvZNcha97boibQ2OE7IuZ4bctp/j+d5DhJktonEi//0A3pHwLGBnPlDOtPdriOm61fb8fRRq7B6vdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChxDU3pe9jQhpEmti0m71966iehPB8g7ZpiRsexVHs9gIgASRM292B1n/lJnI20/9F65bmEuYRbo+z3oS2zBeSzsY="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/supervisord-eventlistener-0.2.0.tgz_1467732239446_0.12391321267932653"}}},"readme":"# node-supervisord-eventlistener\n\nThis library implements a Supervisord event listener for Node.js.\n\n## Install\n\n`npm install supervisord-eventlistener`\n\n## Usage\n\n**Sample Node.js Program**\n\n```javascript\nvar supervisor = require(\"supervisord-eventlistener\");\nsupervisor.on(\"event\", function(type, headers, data) {\n\t//Gets called for all events\n\tconsole.error(\"Event type:\", type);\n\tconsole.error(\"Headers:\", headers);\n\tconsole.error(\"Data:\", data);\n});\nsupervisor.on(\"PROCESS_STATE_STOPPING\", function(headers, data) {\n\t//Only called for PROCESS_STATE_STOPPING events\n\tconsole.error(\"Process state stopping\");\n\tconsole.error(\"Headers:\", headers);\n\tconsole.error(\"Data:\", data);\n});\nsupervisor.listen(process.stdin, process.stdout);\n```\n\n**Sample Supervisor Configuration**\n\n```\n[eventlistener:monitoring]\ncommand = /usr/bin/nodejs /home/user/your_node_program.js\nevents = PROCESS_STATE,PROCESS_COMMUNICATION,SUPERVISOR_STATE_CHANGE\n```\n\n\n### More Documentation\n\nList of event types: [click here](http://supervisord.org/events.html#event-types)\n\nSee [http://supervisord.org/events.html](http://supervisord.org/events.html) for more documentation.\n","maintainers":[{"name":"sugendran","email":"sugendran@sugendran.net"}],"time":{"modified":"2022-06-27T02:24:21.784Z","created":"2011-11-28T12:52:53.638Z","0.0.1":"2011-11-28T12:52:57.436Z","0.1.0":"2013-03-08T22:21:09.261Z","0.2.0":"2016-07-05T15:24:01.808Z"},"author":{"name":"Sugendran Ganess"},"repository":{"type":"git","url":"git://github.com/sugendran/node-supervisord-eventlistener.git"},"homepage":"https://github.com/sugendran/node-supervisord-eventlistener#readme","keywords":["supervisord"],"contributors":[{"name":"Blake Miner","email":"miner.blake@gmail.com"}],"bugs":{"url":"https://github.com/sugendran/node-supervisord-eventlistener/issues"},"readmeFilename":"README.md"}