{"_id":"shutdown","_rev":"25-88cdef8a5620e0015c03a0ffa6aad7ee","name":"shutdown","description":"Graceful shutdown with run-level like stages","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"shutdown","version":"0.1.0","description":"Graceful shutdown with run-level like stages","main":"index.js","scripts":{"test":"mocha -R spec tests/"},"repository":{"type":"git","url":"git://github.com/gitterHQ/shutdown.git"},"keywords":["shutdown","exit","runlevel"],"author":{"name":"Andrew Newdigate"},"license":"MIT","bugs":{"url":"https://github.com/gitterHQ/shutdown/issues"},"homepage":"https://github.com/gitterHQ/shutdown","dependencies":{"q":"^1.0.1"},"devDependencies":{"mocha":"^1.18.2"},"_id":"shutdown@0.1.0","dist":{"shasum":"d073c472e0b1babe88565bf40274e90f425c0c6c","tarball":"https://registry.npmjs.org/shutdown/-/shutdown-0.1.0.tgz","integrity":"sha512-DAVQvqmgYKNgr6+MqEtrLUQVYSof1US1BYaAQ3qNO7AqpO02T8P6TC+qai1gdUKaeepUXSdFlhu6Xc5zmC1Fuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJ4op4fJrYhs74RTNFf6llKz7XGxr2H7c3UjltMTa1kAIhAOVNAC19WNSHFTrN9rz2JPWLFkyRy/fWXDXmUEJvaRDX"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andrewnewdigate","email":"andrewn@datatribe.net"},"maintainers":[{"name":"andrewnewdigate","email":"andrewn@datatribe.net"}]},"0.1.1":{"name":"shutdown","version":"0.1.1","description":"Graceful shutdown with run-level like stages","main":"index.js","scripts":{"test":"mocha -R spec tests/"},"repository":{"type":"git","url":"git://github.com/gitterHQ/shutdown.git"},"keywords":["shutdown","exit","runlevel"],"author":{"name":"Andrew Newdigate"},"license":"MIT","bugs":{"url":"https://github.com/gitterHQ/shutdown/issues"},"homepage":"https://github.com/gitterHQ/shutdown","dependencies":{"q":"^1.0.1"},"devDependencies":{"mocha":"^1.18.2"},"_id":"shutdown@0.1.1","dist":{"shasum":"810de5a6367a3e2e80b52b24a6c93d655ae98851","tarball":"https://registry.npmjs.org/shutdown/-/shutdown-0.1.1.tgz","integrity":"sha512-EkWRYLVNtD9dN/TCIsL61aGsI3Z/1CwV2nzjzq7RzRmgSPr4x15HEvDveBWGoziEzVoXjqRGtags1eVa+1Fs+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtwZZmvwWCMbEokMr4pLGpbgcpRCg7Ig8mB0YyDYnkVwIgPigWhitJqqshcr68EZOWp2j72sY+ci6YsOcG7Kr1tWM="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andrewnewdigate","email":"andrewn@datatribe.net"},"maintainers":[{"name":"andrewnewdigate","email":"andrewn@datatribe.net"}]},"0.1.2":{"name":"shutdown","version":"0.1.2","description":"Graceful shutdown with run-level like stages","main":"index.js","scripts":{"test":"mocha -R spec tests/"},"repository":{"type":"git","url":"git://github.com/gitterHQ/shutdown.git"},"keywords":["shutdown","exit","runlevel"],"author":{"name":"Andrew Newdigate"},"license":"MIT","bugs":{"url":"https://github.com/gitterHQ/shutdown/issues"},"homepage":"https://github.com/gitterHQ/shutdown","dependencies":{"q":"^1.0.1"},"devDependencies":{"mocha":"^1.18.2"},"_id":"shutdown@0.1.2","dist":{"shasum":"9ca049abc542e56f2fb9d6a16db87f03dfb90790","tarball":"https://registry.npmjs.org/shutdown/-/shutdown-0.1.2.tgz","integrity":"sha512-9vGMjbgfGwg4mV5IWlTl1efYEVCpwdf5XRJjf9e2g1qAgmXlVEbiblhXesoArnBJNb3k0dYmXvbfGgvIS2UunA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBOz8Ncjml7V2MisxHb3bG21uPmO26aYY6B5bgkV7CXzAiEAp/0lT4CGSvWNR+Ux3TxkLjDtKhUO39SphbLmkuma7LY="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andrewnewdigate","email":"andrewn@datatribe.net"},"maintainers":[{"name":"andrewnewdigate","email":"andrewn@datatribe.net"}]},"0.1.3":{"name":"shutdown","version":"0.1.3","description":"Graceful shutdown with run-level like stages","main":"index.js","scripts":{"test":"mocha -R spec tests/"},"repository":{"type":"git","url":"git://github.com/gitterHQ/shutdown.git"},"keywords":["shutdown","exit","runlevel"],"author":{"name":"Andrew Newdigate"},"license":"MIT","bugs":{"url":"https://github.com/gitterHQ/shutdown/issues"},"homepage":"https://github.com/gitterHQ/shutdown","dependencies":{"q":"^1.0.1"},"devDependencies":{"mocha":"^1.18.2"},"_id":"shutdown@0.1.3","dist":{"shasum":"1bea211c9d223d169f8fb761656a9fc6d293560a","tarball":"https://registry.npmjs.org/shutdown/-/shutdown-0.1.3.tgz","integrity":"sha512-mijiwedGbk86ra0ERhnxnalNkcMKwjJdtpn74p/9Fi/dyRWMXkbv0ylmztA8lgwSDgSfkdyutYbN2Yj8Ln+hIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFNdvWDEI8kozmA8ZQ5Vy9KAvDYEgjHXHF9xSKqAVenBAiEA/d6B519QRddxWb4YBSPO2KP1dfHXQ48cyqwUSXmtpNM="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andrewnewdigate","email":"andrewn@datatribe.net"},"maintainers":[{"name":"andrewnewdigate","email":"andrewn@datatribe.net"}]},"0.2.0":{"name":"shutdown","version":"0.2.0","description":"Graceful shutdown with run-level like stages","main":"index.js","scripts":{"test":"mocha -R spec tests/"},"repository":{"type":"git","url":"git://github.com/gitterHQ/shutdown.git"},"keywords":["shutdown","exit","runlevel"],"author":{"name":"Andrew Newdigate"},"license":"MIT","bugs":{"url":"https://github.com/gitterHQ/shutdown/issues"},"homepage":"https://github.com/gitterHQ/shutdown","dependencies":{"q":"^1.0.1"},"devDependencies":{"mocha":"^1.18.2"},"_id":"shutdown@0.2.0","dist":{"shasum":"0128b7fac0cbb01e849e2aef57eadae85283380b","tarball":"https://registry.npmjs.org/shutdown/-/shutdown-0.2.0.tgz","integrity":"sha512-eoKVFQ0bln3tdSWbHtxREophSIlrAOJBb2sZxz7hI7yRHDvfuQTpm4eW+TMs2yahe9hvDHE3GhaCfAZJoQAM2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbBt34Xi3UBeUM9pKxlviHOssM42y9UU6N+AD+9be2vAIgE03zqphLydA+15J47HyPpcyIJ01PD+l2G99wMbw4Etg="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andrewnewdigate","email":"andrewn@datatribe.net"},"maintainers":[{"name":"andrewnewdigate","email":"andrewn@datatribe.net"}]},"0.2.1":{"name":"shutdown","version":"0.2.1","description":"Graceful shutdown with run-level like stages","main":"index.js","scripts":{"test":"mocha -R spec tests/"},"repository":{"type":"git","url":"git://github.com/gitterHQ/shutdown.git"},"keywords":["shutdown","exit","runlevel"],"author":{"name":"Andrew Newdigate"},"license":"MIT","bugs":{"url":"https://github.com/gitterHQ/shutdown/issues"},"homepage":"https://github.com/gitterHQ/shutdown","dependencies":{"async":"^0.9.0"},"devDependencies":{"mocha":"^1.18.2"},"_id":"shutdown@0.2.1","dist":{"shasum":"2aed455abaf5d1a5cf8c36acc543f9040b7d2182","tarball":"https://registry.npmjs.org/shutdown/-/shutdown-0.2.1.tgz","integrity":"sha512-iV47PXnlvSkKbgsXZAcqgdJkcE38wJT4e+CA7TKlX1ONkhcrplydeTja9LcmvKZHETiv9PB0RmgSiCceU2dOTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBW7GmgXp/XB/fs8K7fYQZYx8Z0KPLaNkksfRJYMTuGhAiAjcEdyfv3cxh7OkJz8PEKwhRtN7GqsOslPek/kFOrN+w=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andrewnewdigate","email":"andrewn@datatribe.net"},"maintainers":[{"name":"andrewnewdigate","email":"andrewn@datatribe.net"}]},"0.2.2":{"name":"shutdown","version":"0.2.2","description":"Graceful shutdown with run-level like stages","main":"index.js","scripts":{"test":"mocha -R spec tests/"},"repository":{"type":"git","url":"git://github.com/gitterHQ/shutdown.git"},"keywords":["shutdown","exit","runlevel"],"author":{"name":"Andrew Newdigate"},"license":"MIT","bugs":{"url":"https://github.com/gitterHQ/shutdown/issues"},"homepage":"https://github.com/gitterHQ/shutdown","dependencies":{"async":"^0.9.0"},"devDependencies":{"mocha":"^1.18.2"},"_id":"shutdown@0.2.2","dist":{"shasum":"f0145beeea6abb4ca8c9b1810f9669b48a13365d","tarball":"https://registry.npmjs.org/shutdown/-/shutdown-0.2.2.tgz","integrity":"sha512-fKXkr6Pu+2eJ0sPoXIMIDZSbA06FZACw+mAmwhwQByiYGapj3GM8PIvif5cLhOOkZGQFHgkI89fRXuhOQeQGVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRolRwmcg8vCl/dIo+xoH4gLuovFY4gsbYbp73p1op3wIgezHpDX+BhXZLnw0dwAXo1o0Ck6RYmhQwQugnBKsyqOg="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andrewnewdigate","email":"andrewn@datatribe.net"},"maintainers":[{"name":"andrewnewdigate","email":"andrewn@datatribe.net"}]},"0.2.3":{"name":"shutdown","version":"0.2.3","description":"Graceful shutdown with run-level like stages","main":"index.js","scripts":{"test":"mocha -R spec tests/"},"repository":{"type":"git","url":"git://github.com/gitterHQ/shutdown.git"},"keywords":["shutdown","exit","runlevel"],"author":{"name":"Andrew Newdigate"},"license":"MIT","bugs":{"url":"https://github.com/gitterHQ/shutdown/issues"},"homepage":"https://github.com/gitterHQ/shutdown","dependencies":{"async":"^0.9.0"},"devDependencies":{"mocha":"^1.18.2","retire":"^0.2.1"},"_id":"shutdown@0.2.3","dist":{"shasum":"a69d94ea7c7e24a66e30dcfae1e158e18e3ed390","tarball":"https://registry.npmjs.org/shutdown/-/shutdown-0.2.3.tgz","integrity":"sha512-iqZgcE6fc0i+3H6/E2OYbmw6ysG33cSWcpayqe6hz/aux2n8Gwarw/2MAaSRaYD0GjOeqmXFBjCReucQRTKhdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHXg5Da4IbOn0l6TLkE9AYb5V0uYC0SZT4F2DhzcPxr0AiBqXJ3GGqkz8240xPAt1atfK4XKAJUBojp4KCB+n96YLA=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andrewnewdigate","email":"andrewn@datatribe.net"},"maintainers":[{"name":"andrewnewdigate","email":"andrewn@datatribe.net"}]},"0.2.4":{"name":"shutdown","version":"0.2.4","description":"Graceful shutdown with run-level like stages","main":"index.js","scripts":{"test":"mocha -R spec tests/"},"repository":{"type":"git","url":"git://github.com/gitterHQ/shutdown.git"},"keywords":["shutdown","exit","runlevel"],"author":{"name":"Andrew Newdigate"},"license":"MIT","bugs":{"url":"https://github.com/gitterHQ/shutdown/issues"},"homepage":"https://github.com/gitterHQ/shutdown","dependencies":{"async":"^0.9.0","debug":"^1.0.2"},"devDependencies":{"mocha":"^1.18.2","retire":"^0.2.1"},"_id":"shutdown@0.2.4","dist":{"shasum":"335b3e6e17a12342c54a054ea7d982d3a6c5bf35","tarball":"https://registry.npmjs.org/shutdown/-/shutdown-0.2.4.tgz","integrity":"sha512-51FSaX9YVRLlRwaXyJEizrBmTXSYUtHqXTXRY9uSic9X9pU2xJCpvfdNxssQvj2e8hfMO958AGZKd334961Cpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGsxS/bVxhtuknkBpRyOtwrZOb3l4IqRnb0RoKMEbbDwAiEAvnN/n7JEnm16aLLGk/GPZ+RZWm5m9wbKd/5PIJrDxQg="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andrewnewdigate","email":"andrewn@datatribe.net"},"maintainers":[{"name":"andrewnewdigate","email":"andrewn@datatribe.net"}]},"0.3.0":{"name":"shutdown","version":"0.3.0","description":"Graceful shutdown with run-level like stages","main":"index.js","scripts":{"test":"mocha -R spec tests/","lint":"eslint --format unix ."},"repository":{"type":"git","url":"git://github.com/gitterHQ/shutdown.git"},"keywords":["shutdown","exit","runlevel"],"author":{"name":"Andrew Newdigate"},"license":"MIT","bugs":{"url":"https://github.com/gitterHQ/shutdown/issues"},"homepage":"https://github.com/gitterHQ/shutdown","dependencies":{"async":"^2.3.0","debug":"^2.6.4"},"devDependencies":{"eslint":"^3.19.0","mocha":"^3.3.0","retire":"^1.2.13"},"gitHead":"c6491ae7c32138f8cfefb49ec327504b2d7778b9","_id":"shutdown@0.3.0","_shasum":"0269447e7cd0f805ba4e9c4d8f937d2db3efb594","_from":".","_npmVersion":"2.15.11","_nodeVersion":"7.4.0","_npmUser":{"name":"andrewnewdigate","email":"andrewn@datatribe.net"},"dist":{"shasum":"0269447e7cd0f805ba4e9c4d8f937d2db3efb594","tarball":"https://registry.npmjs.org/shutdown/-/shutdown-0.3.0.tgz","integrity":"sha512-3Te0GFLJ6PzLhQ4yroqeXQl+2yo/y5Hn5CJd45OD4rzAnG7Yg+SeVvIuayGzy+iTirv5XtVO7zOeHz1+pTY5jQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiC0sqnbeygeXK9NSxl2gvrTPBLdI+3EmbFX4JqpfsfwIgMkr40hnaR5DrywdsTsshh5sekH0RnWrtq+JcAh5hU6o="}]},"maintainers":[{"name":"andrewnewdigate","email":"andrewn@datatribe.net"},{"name":"suprememoocow","email":"andrewn@datatribe.net"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/shutdown-0.3.0.tgz_1493292703987_0.9047968606464565"}}},"readme":"shutdown\n========\n\nSequenced shutdown events for graceful shutdown in Node.\n\n```\nnpm install shutdown\n```\n\nAdd your shutdown handlers:\n```\n/* Add a mongo shutdown handler at priority 10 */\nshutdown.addHandler('mongo', 10, function(callback) {\n  /* Quit your mongo connections here */\n  callback();\n});\n\n/* Add a mongo shutdown handler at priority 9 */\nshutdown.addHandler('redis', 9, function(callback) {\n  /* Quit your redis connections here */\n  callback();\n});\n```\n\nWhen you want to shutdown:\n```\n/* Mongo shutdown handlers will be called first, then redis handlers next, etc */\nshutdown.shutdownGracefully();\n\n```\n\nIf you want to provide an exit code for the process\n```\nshutdown.shutdownGracefully(1);\n```\n\n\nLicence\n=======\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Troupe Technology Limited.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","maintainers":[{"email":"andrewn@datatribe.net","name":"suprememoocow"},{"email":"andrewn@datatribe.net","name":"andrewnewdigate"}],"time":{"modified":"2022-06-26T19:12:57.661Z","created":"2014-05-06T14:47:57.681Z","0.1.0":"2014-05-06T14:47:57.681Z","0.1.1":"2014-05-06T16:46:43.133Z","0.1.2":"2014-05-06T16:58:17.821Z","0.1.3":"2014-05-06T17:12:10.585Z","0.2.0":"2014-05-17T14:11:19.553Z","0.2.1":"2014-05-17T14:14:29.218Z","0.2.2":"2014-05-17T14:21:57.511Z","0.2.3":"2014-05-24T14:10:26.512Z","0.2.4":"2014-06-19T09:03:11.777Z","0.3.0":"2017-04-27T11:31:45.993Z"},"homepage":"https://github.com/gitterHQ/shutdown","keywords":["shutdown","exit","runlevel"],"repository":{"type":"git","url":"git://github.com/gitterHQ/shutdown.git"},"author":{"name":"Andrew Newdigate"},"bugs":{"url":"https://github.com/gitterHQ/shutdown/issues"},"license":"MIT","readmeFilename":"README.md","users":{"leonzhao":true,"jovinbm":true}}