Logo

0x3d.Site

is designed for aggregating information.
Welcome
check repository here

Node TypeScript Codecov Mastodon 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:

Hire me

Please reach out if you're looking for a Node.js API or CLI engineer (11 years of experience). Most recently I have been Netlify Build's and Netlify Plugins' technical lead for 2.5 years. I am available for full-time remote positions.

Example

import { signalsByName, signalsByNumber } from '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

This package works in Node.js >=18.18.0.

This is an ES module. It must be loaded using an import or import() statement, not require(). If TypeScript is used, it must be configured to output ES modules, not CommonJS.

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
ehmicky

💻 🎨 🤔 📖
electrovir
electrovir

💻
Felix Zedén Yverås
Felix Zedén Yverås

💻 ⚠️
Cross-Platform
Cross-Platform
Cross-platform development allows building applications that run on multiple operating systems. Frameworks like Flutter, React Native, and Xamarin enable developers to write code once and deploy it everywhere. It saves time and resources in software development.
Docker: Accelerated Container Application Development
Docker: Accelerated Container Application Development
GitHub - sindresorhus/ps-list: Get running processes
GitHub - sindresorhus/ps-list: Get running processes
GitHub - sindresorhus/user-home: Get the path to the user home directory
GitHub - sindresorhus/user-home: Get the path to the user home directory
GitHub - paulmillr/readdirp: Recursive version of fs.readdir with streaming api.
GitHub - paulmillr/readdirp: Recursive version of fs.readdir with streaming api.
GitHub - microsoft/nodejs-guidelines: Tips, tricks, and resources for working with Node.js, and the start of an ongoing conversation on how we can improve the Node.js experience on Microsoft platforms.
GitHub - microsoft/nodejs-guidelines: Tips, tricks, and resources for working with Node.js, and the start of an ongoing conversation on how we can improve the Node.js experience on Microsoft platforms.
GitHub - isaacs/node-graceful-fs: fs with incremental backoff on EMFILE
GitHub - isaacs/node-graceful-fs: fs with incremental backoff on EMFILE
GitHub - felixrieseberg/npm-windows-upgrade: :rocket: Upgrade npm on Windows
GitHub - felixrieseberg/npm-windows-upgrade: :rocket: Upgrade npm on Windows
Features • GitHub Actions
Features • GitHub Actions
GitHub - tporadowski/redis: Native port of Redis for Windows. Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs. This repository contains unofficial port of Redis to Windows.
GitHub - tporadowski/redis: Native port of Redis for Windows. Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs. This repository contains unofficial port of Redis to Windows.
GitHub - bcoe/any-path: :rage2: make the keys on an object path.sep agnostic.
GitHub - bcoe/any-path: :rage2: make the keys on an object path.sep agnostic.
GitHub - sindresorhus/dev-null-cli: Cross-platform `/dev/null`
GitHub - sindresorhus/dev-null-cli: Cross-platform `/dev/null`
GitHub - sindresorhus/random-bytes-readable-stream: Creates a readable stream producing cryptographically strong pseudo-random data using `crypto.randomBytes()`
GitHub - sindresorhus/random-bytes-readable-stream: Creates a readable stream producing cryptographically strong pseudo-random data using `crypto.randomBytes()`
GitHub - sindresorhus/is-elevated: Check if the process is running with elevated privileges
GitHub - sindresorhus/is-elevated: Check if the process is running with elevated privileges
GitHub - sindresorhus/noop-stream: Create a readable Node.js stream that produces no data (or optionally blank data) or a writable stream that discards data
GitHub - sindresorhus/noop-stream: Create a readable Node.js stream that produces no data (or optionally blank data) or a writable stream that discards data
GitHub - jonschlinkert/is-windows: Returns true if the platform is Windows (and Cygwin or MSYS/MinGW for unit tests)
GitHub - jonschlinkert/is-windows: Returns true if the platform is Windows (and Cygwin or MSYS/MinGW for unit tests)
GitHub - sindresorhus/clipboard-cli: Access the system clipboard (copy/paste)
GitHub - sindresorhus/clipboard-cli: Access the system clipboard (copy/paste)
GitHub - sindresorhus/is-wsl: Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
GitHub - sindresorhus/is-wsl: Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
GitHub - npm/node-which: Like which(1) unix command. Find the first instance of an executable in the PATH.
GitHub - npm/node-which: Like which(1) unix command. Find the first instance of an executable in the PATH.
GitHub - sindresorhus/log-symbols: Colored symbols for various log levels
GitHub - sindresorhus/log-symbols: Colored symbols for various log levels
GitHub - CatalystCode/windows-registry-node: Read and Write to the Windows registry in-process from Node.js. Easily set application file associations and other goodies.
GitHub - CatalystCode/windows-registry-node: Read and Write to the Windows registry in-process from Node.js. Easily set application file associations and other goodies.
GitHub - sindresorhus/open: Open stuff like URLs, files, executables. Cross-platform.
GitHub - sindresorhus/open: Open stuff like URLs, files, executables. Cross-platform.
GitHub - sindresorhus/fkill: Fabulously kill processes. Cross-platform.
GitHub - sindresorhus/fkill: Fabulously kill processes. Cross-platform.
GitHub - felixrieseberg/windows-build-tools: :package: Install C++ Build Tools for Windows using npm
GitHub - felixrieseberg/windows-build-tools: :package: Install C++ Build Tools for Windows using npm
Install WSL
Install WSL
Unicode stdout on Windows command prompt · Issue #7940 · nodejs/node-v0.x-archive
Unicode stdout on Windows command prompt · Issue #7940 · nodejs/node-v0.x-archive
GitHub - sindresorhus/cpy: Copy files
GitHub - sindresorhus/cpy: Copy files
GitHub - npm/osenv: Look up environment settings specific to different operating systems.
GitHub - npm/osenv: Look up environment settings specific to different operating systems.
GitHub - sindresorhus/figures: Unicode symbols with fallbacks for older terminals
GitHub - sindresorhus/figures: Unicode symbols with fallbacks for older terminals
Node.js — Download Node.js®
Node.js — Download Node.js®
GitHub - sindresorhus/username: Get the username of the current user
GitHub - sindresorhus/username: Get the username of the current user
Cross-Platform
More on Cross-Platform

Programming Tips & Tricks

Code smarter, not harder—insider tips and tricks for developers.

Error Solutions

Turn frustration into progress—fix errors faster than ever.

Shortcuts

The art of speed—shortcuts to supercharge your workflow.
  1. Collections 😎
  2. Frequently Asked Question's 🤯

Tools

available to use.

Made with ❤️

to provide resources in various ares.