Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. [![Codecov](https://img.shields.io/codecov/c/github/ehmicky/human-signals.svg?label=tested&logo=codecov)](https://codecov.io/gh/ehmicky/human-signals)
  2. [![Travis](https://img.shields.io/badge/cross-platform-4cc61e.svg?logo=travis)](https://travis-ci.org/ehmicky/human-signals)
  3. [![Node](https://img.shields.io/node/v/human-signals.svg?logo=node.js)](https://www.npmjs.com/package/human-signals)
  4. [![Gitter](https://img.shields.io/gitter/room/ehmicky/human-signals.svg?logo=gitter)](https://gitter.im/ehmicky/human-signals)
  5. [![Twitter](https://img.shields.io/badge/%E2%80%8B-twitter-4cc61e.svg?logo=twitter)](https://twitter.com/intent/follow?screen_name=ehmicky)
  6. [![Medium](https://img.shields.io/badge/%E2%80%8B-medium-4cc61e.svg?logo=medium)](https://medium.com/@ehmicky)
  7. Human-friendly process signals.
  8. This is a map of known process signals with some information about each signal.
  9. Unlike
  10. [`os.constants.signals`](https://nodejs.org/api/os.html#os_signal_constants)
  11. this includes:
  12. - human-friendly [descriptions](#description)
  13. - [default actions](#action), including whether they [can be prevented](#forced)
  14. - whether the signal is [supported](#supported) by the current OS
  15. # Example
  16. ```js
  17. const { signalsByName, signalsByNumber } = require('human-signals')
  18. console.log(signalsByName.SIGINT)
  19. // {
  20. // name: 'SIGINT',
  21. // number: 2,
  22. // description: 'User interruption with CTRL-C',
  23. // supported: true,
  24. // action: 'terminate',
  25. // forced: false,
  26. // standard: 'ansi'
  27. // }
  28. console.log(signalsByNumber[8])
  29. // {
  30. // name: 'SIGFPE',
  31. // number: 8,
  32. // description: 'Floating point arithmetic error',
  33. // supported: true,
  34. // action: 'core',
  35. // forced: false,
  36. // standard: 'ansi'
  37. // }
  38. ```
  39. # Install
  40. ```bash
  41. npm install human-signals
  42. ```
  43. # Usage
  44. ## signalsByName
  45. _Type_: `object`
  46. Object whose keys are signal [names](#name) and values are
  47. [signal objects](#signal).
  48. ## signalsByNumber
  49. _Type_: `object`
  50. Object whose keys are signal [numbers](#number) and values are
  51. [signal objects](#signal).
  52. ## signal
  53. _Type_: `object`
  54. Signal object with the following properties.
  55. ### name
  56. _Type_: `string`
  57. Standard name of the signal, for example `'SIGINT'`.
  58. ### number
  59. _Type_: `number`
  60. Code number of the signal, for example `2`. While most `number` are
  61. cross-platform, some are different between different OS.
  62. ### description
  63. _Type_: `string`
  64. Human-friendly description for the signal, for example
  65. `'User interruption with CTRL-C'`.
  66. ### supported
  67. _Type_: `boolean`
  68. Whether the current OS can handle this signal in Node.js using
  69. [`process.on(name, handler)`](https://nodejs.org/api/process.html#process_signal_events).
  70. The list of supported signals
  71. [is OS-specific](https://github.com/ehmicky/cross-platform-node-guide/blob/master/docs/6_networking_ipc/signals.md#cross-platform-signals).
  72. ### action
  73. _Type_: `string`\
  74. _Enum_: `'terminate'`, `'core'`, `'ignore'`, `'pause'`, `'unpause'`
  75. What is the default action for this signal when it is not handled.
  76. ### forced
  77. _Type_: `boolean`
  78. Whether the signal's default action cannot be prevented. This is `true` for
  79. `SIGTERM`, `SIGKILL` and `SIGSTOP`.
  80. ### standard
  81. _Type_: `string`\
  82. _Enum_: `'ansi'`, `'posix'`, `'bsd'`, `'systemv'`, `'other'`
  83. Which standard defined that signal.
  84. # Support
  85. If you found a bug or would like a new feature, _don't hesitate_ to
  86. [submit an issue on GitHub](../../issues).
  87. For other questions, feel free to
  88. [chat with us on Gitter](https://gitter.im/ehmicky/human-signals).
  89. Everyone is welcome regardless of personal background. We enforce a
  90. [Code of conduct](CODE_OF_CONDUCT.md) in order to promote a positive and
  91. inclusive environment.
  92. # Contributing
  93. This project was made with ❤️. The simplest way to give back is by starring and
  94. sharing it online.
  95. If the documentation is unclear or has a typo, please click on the page's `Edit`
  96. button (pencil icon) and suggest a correction.
  97. If you would like to help us fix a bug or add a new feature, please check our
  98. [guidelines](CONTRIBUTING.md). Pull requests are welcome!
  99. Thanks go to our wonderful contributors:
  100. <!-- ALL-CONTRIBUTORS-LIST:START -->
  101. <!-- prettier-ignore-start -->
  102. <!-- markdownlint-disable -->
  103. <table>
  104. <tr>
  105. <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>
  106. <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>
  107. </tr>
  108. </table>
  109. <!-- markdownlint-enable -->
  110. <!-- prettier-ignore-end -->
  111. <!-- ALL-CONTRIBUTORS-LIST:END -->