{"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"keywords":["exit","quit","process","hook","graceful","handler","shutdown","sigterm","sigint","terminate","kill","stop","event"],"dist-tags":{"latest":"1.1.1"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"description":"Run some code when the process exits","readme":"# exit-hook [![Build Status](https://travis-ci.org/sindresorhus/exit-hook.svg?branch=master)](https://travis-ci.org/sindresorhus/exit-hook)\n\n> Run some code when the process exits\n\nThe `process.on('exit')` event doesn't catch all the ways a process can exit.\n\nUseful for cleaning up.\n\n\n## Install\n\n```sh\n$ npm install --save exit-hook\n```\n\n\n## Usage\n\n```js\nvar exitHook = require('exit-hook');\n\nexitHook(function () {\n\tconsole.log('exiting');\n});\n\n// you can add multiple hooks, even across files\nexitHook(function () {\n\tconsole.log('exiting 2');\n});\n\nthrow new Error('unicorns');\n\n//=> exiting\n//=> exiting 2\n```\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n","repository":{"type":"git","url":"git://github.com/sindresorhus/exit-hook"},"users":{"dylanf":true,"j3kz":true},"bugs":{"url":"https://github.com/sindresorhus/exit-hook/issues"},"license":"MIT","versions":{"1.0.0":{"name":"exit-hook","version":"1.0.0","description":"Run some code when the process exits","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/exit-hook"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["exit","quit","process","hook","graceful","handler","shutdown","sigterm","sigint","terminate","kill","stop","event"],"devDependencies":{"ava":"0.0.4"},"bugs":{"url":"https://github.com/sindresorhus/exit-hook/issues"},"homepage":"https://github.com/sindresorhus/exit-hook","_id":"exit-hook@1.0.0","_shasum":"84e17510af2f170df709c84bb70ba315b00c9019","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"84e17510af2f170df709c84bb70ba315b00c9019","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/exit-hook/-/exit-hook-1.0.0.tgz"},"directories":{}},"1.1.0":{"name":"exit-hook","version":"1.1.0","description":"Run some code when the process exits","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/exit-hook"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["exit","quit","process","hook","graceful","handler","shutdown","sigterm","sigint","terminate","kill","stop","event"],"devDependencies":{"ava":"0.0.4"},"bugs":{"url":"https://github.com/sindresorhus/exit-hook/issues"},"homepage":"https://github.com/sindresorhus/exit-hook","_id":"exit-hook@1.1.0","_shasum":"06f5ef551030ed7c0e3bc5148ee64c9f5626df87","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"06f5ef551030ed7c0e3bc5148ee64c9f5626df87","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/exit-hook/-/exit-hook-1.1.0.tgz"},"directories":{}},"1.1.1":{"name":"exit-hook","version":"1.1.1","description":"Run some code when the process exits","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/exit-hook"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["exit","quit","process","hook","graceful","handler","shutdown","sigterm","sigint","terminate","kill","stop","event"],"devDependencies":{"ava":"0.0.4"},"bugs":{"url":"https://github.com/sindresorhus/exit-hook/issues"},"homepage":"https://github.com/sindresorhus/exit-hook","_id":"exit-hook@1.1.1","_shasum":"f05ca233b48c05d54fff07765df8507e95c02ff8","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"f05ca233b48c05d54fff07765df8507e95c02ff8","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/exit-hook/-/exit-hook-1.1.1.tgz"},"directories":{}}},"name":"exit-hook","time":{"modified":"2014-09-01T13:14:50.788Z","created":"2014-08-31T11:19:13.581Z","1.0.0":"2014-08-31T11:19:13.581Z","1.1.0":"2014-08-31T23:31:07.279Z","1.1.1":"2014-09-01T13:14:50.788Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/exit-hook"}