| 1 |
{ |
| 2 |
"_id": "killable", |
| 3 |
"_rev": "4-2bbf1c505f1505f2025d236a24139beb", |
| 4 |
"name": "killable", |
| 5 |
"description": "Keeps track of a server's open sockets so they can be destroyed at a moment's notice.", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "1.0.1" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"1.0.0": { |
| 11 |
"name": "killable", |
| 12 |
"version": "1.0.0", |
| 13 |
"description": "Keeps track of a server's open sockets so they can be destroyed at a moment's notice.", |
| 14 |
"main": "index.js", |
| 15 |
"repository": { |
| 16 |
"type": "git", |
| 17 |
"url": "https://github.com/marten-de-vries/killable.git" |
| 18 |
}, |
| 19 |
"keywords": [ |
| 20 |
"express", |
| 21 |
"http", |
| 22 |
"server", |
| 23 |
"socket", |
| 24 |
"kill", |
| 25 |
"truncate", |
| 26 |
"destroy", |
| 27 |
"restart", |
| 28 |
"shutdown", |
| 29 |
"immeadiately" |
| 30 |
], |
| 31 |
"author": { |
| 32 |
"name": "Marten de Vries" |
| 33 |
}, |
| 34 |
"license": "ISC", |
| 35 |
"bugs": { |
| 36 |
"url": "https://github.com/marten-de-vries/killable/issues" |
| 37 |
}, |
| 38 |
"gitHead": "cebeee0433e8bcfae70b313f007f52110e1e113b", |
| 39 |
"_id": "[email protected]", |
| 40 |
"scripts": {}, |
| 41 |
"_shasum": "da8b84bd47de5395878f95d64d02f2449fe05e6b", |
| 42 |
"_from": ".", |
| 43 |
"_npmVersion": "1.4.21", |
| 44 |
"_npmUser": { |
| 45 |
"name": "commandoline", |
| 46 |
"email": "[email protected]" |
| 47 |
}, |
| 48 |
"maintainers": [ |
| 49 |
{ |
| 50 |
"name": "commandoline", |
| 51 |
"email": "[email protected]" |
| 52 |
} |
| 53 |
], |
| 54 |
"dist": { |
| 55 |
"shasum": "da8b84bd47de5395878f95d64d02f2449fe05e6b", |
| 56 |
"tarball": "https://registry.npmjs.org/killable/-/killable-1.0.0.tgz" |
| 57 |
}, |
| 58 |
"directories": {} |
| 59 |
}, |
| 60 |
"1.0.1": { |
| 61 |
"name": "killable", |
| 62 |
"version": "1.0.1", |
| 63 |
"description": "Keeps track of a server's open sockets so they can be destroyed at a moment's notice.", |
| 64 |
"main": "index.js", |
| 65 |
"repository": { |
| 66 |
"type": "git", |
| 67 |
"url": "git+https://github.com/marten-de-vries/killable.git" |
| 68 |
}, |
| 69 |
"keywords": [ |
| 70 |
"express", |
| 71 |
"http", |
| 72 |
"server", |
| 73 |
"socket", |
| 74 |
"kill", |
| 75 |
"truncate", |
| 76 |
"destroy", |
| 77 |
"restart", |
| 78 |
"shutdown", |
| 79 |
"immeadiately" |
| 80 |
], |
| 81 |
"author": { |
| 82 |
"name": "Marten de Vries" |
| 83 |
}, |
| 84 |
"license": "ISC", |
| 85 |
"bugs": { |
| 86 |
"url": "https://github.com/marten-de-vries/killable/issues" |
| 87 |
}, |
| 88 |
"gitHead": "6f7d56fdd366a08fddbe4ff8438c77e8643a5241", |
| 89 |
"homepage": "https://github.com/marten-de-vries/killable#readme", |
| 90 |
"_id": "[email protected]", |
| 91 |
"_npmVersion": "6.1.0", |
| 92 |
"_nodeVersion": "10.3.0", |
| 93 |
"_npmUser": { |
| 94 |
"name": "commandoline", |
| 95 |
"email": "[email protected]" |
| 96 |
}, |
| 97 |
"dist": { |
| 98 |
"integrity": "sha512-LzqtLKlUwirEUyl/nicirVmNiPvYs7l5n8wOPP7fyJVpUPkvCnW/vuiXGpylGUlnPDnB7311rARzAt3Mhswpjg==", |
| 99 |
"shasum": "4c8ce441187a061c7474fb87ca08e2a638194892", |
| 100 |
"tarball": "https://registry.npmjs.org/killable/-/killable-1.0.1.tgz", |
| 101 |
"fileCount": 4, |
| 102 |
"unpackedSize": 2914, |
| 103 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbknv3CRA9TVsSAnZWagAAVxMP/149NZG4OszYW5Yqu7CM\nFjDVoZe3Atjq20aLpd9OzHaoK1p2EuGqLbJUSL/LZiQrm7AgzeuFv5olEO7G\nt9ucneVnVhShdutPyNr6wABbh/hFUFcOzLtnRIq02IJnfe8C8mw7itkqZ4tf\ntQvZdeGQdaX5YNwSfeySpGXa6R4Zd5jiVr0UR4qEhCW7XVwGmejGF0BXRlGF\na/X1H2EeRqmuY59ZYSrEiK//5wedH6lt6wyTtYzOLq78+QJUXzRTmgFDUMBc\ntAOzVanELu+hI8EvEW/PaoPnp/qDCuRJSIkxvwVyy5cjgL8zwWBEdaqLDYxe\nMv/ALBHamcaWjIoJzPdKqy3qGWmjaSJARTUE6uMJWswIog8Qo7eoRBtBpjcP\n6vdsZWT/FhSJx5mH7eSdj8+dibXtwf1fBE/hP97reR0V27GKlqgFnh/3zYQB\n6wnJaoQTQkSo3R59g8PwubsAqVlNyAJ5PS5eXzovKQMxQl7jzabC9Wa7Ula+\npyN2UdEF+wEncWOrsxyrbK9RYZby6wx5WxyQwhb7bbYzAYPcYu6ZFWiU0nhO\necH76lcjs5m7nOquwJR/MzncCgA0/yDkyawh67vK2oeS+VX4O7pgJsDJJSUj\nlTLnsXMzJ1FwDR+7YQzQM0gAARDfTyU/9B0QF573N8kZTI3z9eLokggC7wNH\nlMHC\r\n=8k6t\r\n-----END PGP SIGNATURE-----\r\n" |
| 104 |
}, |
| 105 |
"maintainers": [ |
| 106 |
{ |
| 107 |
"name": "commandoline", |
| 108 |
"email": "[email protected]" |
| 109 |
} |
| 110 |
], |
| 111 |
"directories": {}, |
| 112 |
"_npmOperationalInternal": { |
| 113 |
"host": "s3://npm-registry-packages", |
| 114 |
"tmp": "tmp/killable_1.0.1_1536326646938_0.1234895972624459" |
| 115 |
}, |
| 116 |
"_hasShrinkwrap": false |
| 117 |
} |
| 118 |
}, |
| 119 |
"readme": "killable\n========\n\nKeeps track of a server's open sockets so they can be destroyed at a\nmoment's notice. This way, the server connection can be killed very\nfast.\n\nInstallation\n------------\n\n```\nnpm install killable\n```\n\nExample usage\n-------------\n\nUsing express:\n('server' in the example is just an ``http.server``, so other frameworks\nor pure Node should work just as well.)\n\n```javascript\nvar killable = require('killable');\n\nvar app = require('express')();\nvar server;\n\napp.route('/', function (req, res, next) {\n res.send('Server is going down NOW!');\n\n server.kill(function () {\n //the server is down when this is called. That won't take long.\n });\n});\n\nvar server = app.listen(8080);\nkillable(server);\n```\n\nAPI\n---\n\nThe ``killable`` module is callable. When you call it on a Node\n``http.Server`` object, it will add a ``server.kill()`` method on it. It\nreturns the server object.\n\n``server.kill([callback])`` closes all open sockets and calls\n``server.close()``, to which the ``callback`` is passed on.\n\nInspired by: http://stackoverflow.com/a/14636625\n\nLicense\n-------\n\nISC\n", |
| 120 |
"maintainers": [ |
| 121 |
{ |
| 122 |
"name": "commandoline", |
| 123 |
"email": "[email protected]" |
| 124 |
} |
| 125 |
], |
| 126 |
"time": { |
| 127 |
"modified": "2019-01-04T09:15:06.934Z", |
| 128 |
"created": "2014-12-18T16:27:46.796Z", |
| 129 |
"1.0.0": "2014-12-18T16:27:46.796Z", |
| 130 |
"1.0.1": "2018-09-07T13:24:07.048Z" |
| 131 |
}, |
| 132 |
"keywords": [ |
| 133 |
"express", |
| 134 |
"http", |
| 135 |
"server", |
| 136 |
"socket", |
| 137 |
"kill", |
| 138 |
"truncate", |
| 139 |
"destroy", |
| 140 |
"restart", |
| 141 |
"shutdown", |
| 142 |
"immeadiately" |
| 143 |
], |
| 144 |
"repository": { |
| 145 |
"type": "git", |
| 146 |
"url": "git+https://github.com/marten-de-vries/killable.git" |
| 147 |
}, |
| 148 |
"author": { |
| 149 |
"name": "Marten de Vries" |
| 150 |
}, |
| 151 |
"bugs": { |
| 152 |
"url": "https://github.com/marten-de-vries/killable/issues" |
| 153 |
}, |
| 154 |
"license": "ISC", |
| 155 |
"readmeFilename": "README.md", |
| 156 |
"homepage": "https://github.com/marten-de-vries/killable#readme", |
| 157 |
"users": { |
| 158 |
"daizch": true |
| 159 |
} |
| 160 |
} |