All Projects → ehmicky → Human Signals

ehmicky / Human Signals

Licence: apache-2.0
Human-friendly process signals

Programming Languages

javascript
184084 projects - #8 most used programming language
es6
455 projects

Projects that are alternatives of or similar to Human Signals

Log Process Errors
Show some ❤️ to Node.js process errors
Stars: ✭ 424 (+90.13%)
Mutual labels:  error-handling, process, error
Thoth
An Error Logger for Go
Stars: ✭ 22 (-90.13%)
Mutual labels:  error-handling, error
Error Overlay Webpack Plugin
Catch errors with style 💥✨
Stars: ✭ 821 (+268.16%)
Mutual labels:  error-handling, error
Go Errortree
Go library for handling errors organized as a tree
Stars: ✭ 59 (-73.54%)
Mutual labels:  error-handling, error
go-errors
Flexible, general-purpose error handling for Go.
Stars: ✭ 17 (-92.38%)
Mutual labels:  error-handling, error
Loadinglayout
简单实用的页面多状态布局(content,loading,empty,error)
Stars: ✭ 712 (+219.28%)
Mutual labels:  status, error
Bugsnag Node
[DEPRECATED] Please upgrade to our Universal JS notifier "@bugsnag/js" • https://github.com/bugsnag/bugsnag-js
Stars: ✭ 48 (-78.48%)
Mutual labels:  error-handling, error
failure
An error handling package for Go.
Stars: ✭ 24 (-89.24%)
Mutual labels:  error-handling, error
Bugsnag Go
Automatic panic monitoring for Go and Go web frameworks, like negroni, gin, and revel
Stars: ✭ 155 (-30.49%)
Mutual labels:  error-handling, error
Nginx Error Pages
Cute Error Pages for your nginx web server
Stars: ✭ 166 (-25.56%)
Mutual labels:  status, error
Graphql Errors
Simple error handler for GraphQL Ruby ❗️
Stars: ✭ 170 (-23.77%)
Mutual labels:  error-handling, error
rust-error-handle
detail rust error handle
Stars: ✭ 47 (-78.92%)
Mutual labels:  error-handling, error
ErrorLayout
Simple layout to show custom error toast with animation
Stars: ✭ 13 (-94.17%)
Mutual labels:  error-handling, error
PageStatusTransformer
A low invasive state management on Android
Stars: ✭ 12 (-94.62%)
Mutual labels:  status, error
Emperror
The Emperor takes care of all errors personally
Stars: ✭ 201 (-9.87%)
Mutual labels:  error-handling, error
Make Error Cause
Make your own nested errors
Stars: ✭ 36 (-83.86%)
Mutual labels:  error-handling, error
custom-exception-middleware
Middleware to catch custom or accidental exceptions
Stars: ✭ 30 (-86.55%)
Mutual labels:  error-handling, error
fine
🧹 Gracefully shutdown Node.js application: help you handle exit signals and cleanup
Stars: ✭ 20 (-91.03%)
Mutual labels:  process, signal
Extensible Custom Error
JavaScript extensible custom error that can take a message and/or an Error object
Stars: ✭ 64 (-71.3%)
Mutual labels:  error-handling, error
Swift Error Handler
Error handling library for Swift
Stars: ✭ 172 (-22.87%)
Mutual labels:  error-handling, error

Codecov Build Node Twitter Medium

Human-friendly process signals.

This is a map of known process signals with some information about each signal.

Unlike os.constants.signals this includes:

Example

const { signalsByName, signalsByNumber } = require('human-signals')

console.log(signalsByName.SIGINT)
// {
//   name: 'SIGINT',
//   number: 2,
//   description: 'User interruption with CTRL-C',
//   supported: true,
//   action: 'terminate',
//   forced: false,
//   standard: 'ansi'
// }

console.log(signalsByNumber[8])
// {
//   name: 'SIGFPE',
//   number: 8,
//   description: 'Floating point arithmetic error',
//   supported: true,
//   action: 'core',
//   forced: false,
//   standard: 'ansi'
// }

Install

npm install human-signals

Usage

signalsByName

Type: object

Object whose keys are signal names and values are signal objects.

signalsByNumber

Type: object

Object whose keys are signal numbers and values are signal objects.

signal

Type: object

Signal object with the following properties.

name

Type: string

Standard name of the signal, for example 'SIGINT'.

number

Type: number

Code number of the signal, for example 2. While most number are cross-platform, some are different between different OS.

description

Type: string

Human-friendly description for the signal, for example 'User interruption with CTRL-C'.

supported

Type: boolean

Whether the current OS can handle this signal in Node.js using process.on(name, handler).

The list of supported signals is OS-specific.

action

Type: string
Enum: 'terminate', 'core', 'ignore', 'pause', 'unpause'

What is the default action for this signal when it is not handled.

forced

Type: boolean

Whether the signal's default action cannot be prevented. This is true for SIGTERM, SIGKILL and SIGSTOP.

standard

Type: string
Enum: 'ansi', 'posix', 'bsd', 'systemv', 'other'

Which standard defined that signal.

Support

For any question, don't hesitate to submit an issue on GitHub.

Everyone is welcome regardless of personal background. We enforce a Code of conduct in order to promote a positive and inclusive environment.

Contributing

This project was made with ❤️. The simplest way to give back is by starring and sharing it online.

If the documentation is unclear or has a typo, please click on the page's Edit button (pencil icon) and suggest a correction.

If you would like to help us fix a bug or add a new feature, please check our guidelines. Pull requests are welcome!

Thanks go to our wonderful contributors:


ehmicky

💻 🎨 🤔 📖

electrovir

💻
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].