Sha256: c241620b57af70a6bfb2f48258d68ffb5e77b10224eae3410b6b88ac475d5bcf

Contents?: true

Size: 1.79 KB

Versions: 62

Compression:

Stored size: 1.79 KB

Contents

{
  "name": "exit-hook",
  "version": "1.1.1",
  "description": "Run some code when the process exits",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/sindresorhus/exit-hook.git"
  },
  "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"
  },
  "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",
  "readmeFilename": "readme.md",
  "bugs": {
    "url": "https://github.com/sindresorhus/exit-hook/issues"
  },
  "homepage": "https://github.com/sindresorhus/exit-hook#readme",
  "_id": "exit-hook@1.1.1",
  "_shasum": "f05ca233b48c05d54fff07765df8507e95c02ff8",
  "_resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz",
  "_from": "exit-hook@>=1.0.0 <2.0.0"
}

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
trusty-festivity-extension-2.3.1 node_modules/bower/node_modules/inquirer/node_modules/cli-cursor/node_modules/restore-cursor/node_modules/exit-hook/package.json
trusty-festivity-extension-2.3.0 node_modules/bower/node_modules/inquirer/node_modules/cli-cursor/node_modules/restore-cursor/node_modules/exit-hook/package.json