canonical
Version:
Canonical code style linter and formatter for JavaScript, SCSS and CSS.
78 lines (77 loc) • 2.69 kB
JSON
{
"_args": [
[
"exit-hook@https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz",
"/Users/gajus/Documents/dev/canonical-code-style/canonical"
]
],
"_from": "exit-hook@>=1.0.0 <2.0.0",
"_id": "exit-hook@1.1.1",
"_inCache": true,
"_location": "/exit-hook",
"_phantomChildren": {},
"_requested": {
"name": "exit-hook",
"raw": "exit-hook@https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz",
"rawSpec": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz",
"type": "remote"
},
"_requiredBy": [
"/restore-cursor"
],
"_resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz",
"_shasum": "f05ca233b48c05d54fff07765df8507e95c02ff8",
"_shrinkwrap": null,
"_spec": "exit-hook@https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz",
"_where": "/Users/gajus/Documents/dev/canonical-code-style/canonical",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
"url": "http://sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/exit-hook/issues"
},
"dependencies": {},
"description": "Run some code when the process exits",
"devDependencies": {
"ava": "0.0.4"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/sindresorhus/exit-hook#readme",
"keywords": [
"event",
"exit",
"graceful",
"handler",
"hook",
"kill",
"process",
"quit",
"shutdown",
"sigint",
"sigterm",
"stop",
"terminate"
],
"license": "MIT",
"name": "exit-hook",
"optionalDependencies": {},
"readme": "# exit-hook [](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",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/exit-hook.git"
},
"scripts": {
"test": "node test.js"
},
"version": "1.1.1"
}