{"_id":"@cjs-mifi-test/human-signals","_rev":"1-e3d04c3ed1685525cfd9256ad41f79ac","name":"@cjs-mifi-test/human-signals","dist-tags":{"latest":"3.0.1"},"versions":{"3.0.1":{"name":"@cjs-mifi-test/human-signals","version":"3.0.1","description":"CJS version: Human-friendly process signals","keywords":["signal","signals","handlers","error-handling","errors","interrupts","sigterm","sigint","irq","process","exit","exit-code","status","operating-system","es6","javascript","linux","macos","windows","nodejs"],"homepage":"https://git.io/JeluP","license":"Apache-2.0","author":{"name":"ehmicky","email":"ehmicky@gmail.com","url":"https://github.com/ehmicky"},"main":"./build/src/main.js","scripts":{},"engines":{"node":">=12.20.0"},"devDependencies":{"@ehmicky/dev-tasks":"^1.0.34","ajv":"^6.12.6","test-each":"^3.0.1"},"types":"./build/src/main.d.ts","_id":"@cjs-mifi-test/human-signals@3.0.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-qfpvfSduyOzHIJPfgUVnyTooxjYFMWXw5FIlWZ0U04gFCDI0T1cnt3angFMJlzmQ/OLiFSxmopaESJLpL0mc4A==","shasum":"002c9421efbd7ce4a36c2ed206fe14f735459ebe","tarball":"https://registry.npmjs.org/@cjs-mifi-test/human-signals/-/human-signals-3.0.1.tgz","fileCount":12,"unpackedSize":44973,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7lP1CRA9TVsSAnZWagAA+QEP/R6iHMRrUUDARE1mAf1Q\nmtuhsu/DZZJvdtAR5+Jig+LKU1/eO/+5pvcoGGfc0Bh4R8mjOX2cLOJ3Khe3\nUwTYdofNpwwkybpNrLsUftFdVWPoOaQci6YEb6G53n35ur0pdjmWphpz6zwf\nP/mhD3W0ELgc7L+mUtSC/FaixF6eBWXnyFaYDTK+VEurYhNcwTab6kAXgqul\nvUj5ZBS/UXKLFLR/jwsed2Nt9mJvNb4Y+7YsKq2H/SJlXiN1Jf0O423X+/US\nIVS99qhXpqjalhOfqjYbF+PTS/FQ7hEANuzAVPvVkVrPPYtLGdDmZCit3yB8\nA119YDuoqPspQTUQHBZHMJiJGT3n2/frggxzaxeyDW34S1bYSEjIbw9sHmVf\nQ7MfWh01EhArLOVo+FzUJoq+qk1yUKcKvvdRsrs/a7h1919Hobbf2EJ5a1FF\nCBZQyYRnN+BbyuSyD/eaq03x4b2SQSKo4o0LIQT4P0tmvDgfHzF0hapsgBWa\nlYIefHlLNihcQABVTC+6RCwx4rhN1wjFZHafCDKXDRCOqtjLxD3q8YprAbbb\nF1/HH3CIFXEXcG9wO+Sw8kD8qFb87rJ6kkF6sDkNrzhbUlsrjvG9w3c6lvsv\ni+m0sgm/0YE7y7UuqnsmwX/aQAHmDzJVuQQ2+RGlCfyhW5tw4F0s+enhNspR\npkO9\r\n=PPrF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFzDZcZ/wXLRPrRLK/WkqarwxEuieOp/WGoU0Rj/oYrVAiEAvpAb041JKDB0eDPgOS1ELzeFnknPye46z8bj4eyeeyM="}]},"_npmUser":{"name":"mifi","email":"finstaden@gmail.com"},"directories":{},"maintainers":[{"name":"mifi","email":"finstaden@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/human-signals_3.0.1_1643009013430_0.8378526949695999"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-24T07:23:33.360Z","3.0.1":"2022-01-24T07:23:33.589Z","modified":"2022-04-04T23:09:35.457Z"},"maintainers":[{"name":"mifi","email":"finstaden@gmail.com"}],"description":"CJS version: Human-friendly process signals","homepage":"https://git.io/JeluP","keywords":["signal","signals","handlers","error-handling","errors","interrupts","sigterm","sigint","irq","process","exit","exit-code","status","operating-system","es6","javascript","linux","macos","windows","nodejs"],"author":{"name":"ehmicky","email":"ehmicky@gmail.com","url":"https://github.com/ehmicky"},"license":"Apache-2.0","readme":"[![Codecov](https://img.shields.io/codecov/c/github/ehmicky/human-signals.svg?label=tested&logo=codecov)](https://codecov.io/gh/ehmicky/human-signals)\n[![Build](https://github.com/ehmicky/human-signals/workflows/Build/badge.svg)](https://github.com/ehmicky/human-signals/actions)\n[![Node](https://img.shields.io/node/v/human-signals.svg?logo=node.js)](https://www.npmjs.com/package/human-signals)\n[![Twitter](https://img.shields.io/badge/%E2%80%8B-twitter-4cc61e.svg?logo=twitter)](https://twitter.com/intent/follow?screen_name=ehmicky)\n[![Medium](https://img.shields.io/badge/%E2%80%8B-medium-4cc61e.svg?logo=medium)](https://medium.com/@ehmicky)\n\nHuman-friendly process signals.\n\nThis is a map of known process signals with some information about each signal.\n\nUnlike\n[`os.constants.signals`](https://nodejs.org/api/os.html#os_signal_constants)\nthis includes:\n\n- human-friendly [descriptions](#description)\n- [default actions](#action), including whether they [can be prevented](#forced)\n- whether the signal is [supported](#supported) by the current OS\n\n# Example\n\n```js\nimport { signalsByName, signalsByNumber } from 'human-signals'\n\nconsole.log(signalsByName.SIGINT)\n// {\n//   name: 'SIGINT',\n//   number: 2,\n//   description: 'User interruption with CTRL-C',\n//   supported: true,\n//   action: 'terminate',\n//   forced: false,\n//   standard: 'ansi'\n// }\n\nconsole.log(signalsByNumber[8])\n// {\n//   name: 'SIGFPE',\n//   number: 8,\n//   description: 'Floating point arithmetic error',\n//   supported: true,\n//   action: 'core',\n//   forced: false,\n//   standard: 'ansi'\n// }\n```\n\n# Install\n\n```bash\nnpm install human-signals\n```\n\nThis package is an ES module and must be loaded using\n[an `import` or `import()` statement](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c),\nnot `require()`.\n\n# Usage\n\n## signalsByName\n\n_Type_: `object`\n\nObject whose keys are signal [names](#name) and values are\n[signal objects](#signal).\n\n## signalsByNumber\n\n_Type_: `object`\n\nObject whose keys are signal [numbers](#number) and values are\n[signal objects](#signal).\n\n## signal\n\n_Type_: `object`\n\nSignal object with the following properties.\n\n### name\n\n_Type_: `string`\n\nStandard name of the signal, for example `'SIGINT'`.\n\n### number\n\n_Type_: `number`\n\nCode number of the signal, for example `2`. While most `number` are\ncross-platform, some are different between different OS.\n\n### description\n\n_Type_: `string`\n\nHuman-friendly description for the signal, for example\n`'User interruption with CTRL-C'`.\n\n### supported\n\n_Type_: `boolean`\n\nWhether the current OS can handle this signal in Node.js using\n[`process.on(name, handler)`](https://nodejs.org/api/process.html#process_signal_events).\n\nThe list of supported signals\n[is OS-specific](https://github.com/ehmicky/cross-platform-node-guide/blob/main/docs/6_networking_ipc/signals.md#cross-platform-signals).\n\n### action\n\n_Type_: `string`\\\n_Enum_: `'terminate'`, `'core'`, `'ignore'`, `'pause'`, `'unpause'`\n\nWhat is the default action for this signal when it is not handled.\n\n### forced\n\n_Type_: `boolean`\n\nWhether the signal's default action cannot be prevented. This is `true` for\n`SIGTERM`, `SIGKILL` and `SIGSTOP`.\n\n### standard\n\n_Type_: `string`\\\n_Enum_: `'ansi'`, `'posix'`, `'bsd'`, `'systemv'`, `'other'`\n\nWhich standard defined that signal.\n\n# Support\n\nFor any question, _don't hesitate_ to [submit an issue on GitHub](../../issues).\n\nEveryone is welcome regardless of personal background. We enforce a\n[Code of conduct](CODE_OF_CONDUCT.md) in order to promote a positive and\ninclusive environment.\n\n# Contributing\n\nThis project was made with ❤️. The simplest way to give back is by starring and\nsharing it online.\n\nIf the documentation is unclear or has a typo, please click on the page's `Edit`\nbutton (pencil icon) and suggest a correction.\n\nIf you would like to help us fix a bug or add a new feature, please check our\n[guidelines](CONTRIBUTING.md). Pull requests are welcome!\n\nThanks go to our wonderful contributors:\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"https://twitter.com/ehmicky\"><img src=\"https://avatars2.githubusercontent.com/u/8136211?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>ehmicky</b></sub></a><br /><a href=\"https://github.com/ehmicky/human-signals/commits?author=ehmicky\" title=\"Code\">💻</a> <a href=\"#design-ehmicky\" title=\"Design\">🎨</a> <a href=\"#ideas-ehmicky\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/ehmicky/human-signals/commits?author=ehmicky\" title=\"Documentation\">📖</a></td>\n    <td align=\"center\"><a href=\"http://www.electrovir.com\"><img src=\"https://avatars0.githubusercontent.com/u/1205860?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>electrovir</b></sub></a><br /><a href=\"https://github.com/ehmicky/human-signals/commits?author=electrovir\" title=\"Code\">💻</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-enable -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n","readmeFilename":"README.md"}