Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Apr 24, 2024 via pnpm
Package summary
Share
0
issues
1
license
1
Apache-2.0
Package created
12 Oct 2019
Version published
16 Oct 2019
Maintainers
1
Total deps
1
Direct deps
0
License
Apache-2.0

Issues

0
This package has no issues

Licenses

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
human-signals@1.1.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of human-signals 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does human-signals do?

Human-signals is an npm package that provides a map of known process signals with a plethora of useful information about each signal. This package brings human-friendly descriptions for the signals, details about their default actions, and highlights whether they can be prevented. An additional feature is its capability to show whether the signal is supported by the current operating system or not. This is an upgrade on the 'os.constants.signals' and works on Node.js version 16.17.0 or higher.

How do you use human-signals?

Using human-signals is very straightforward. Following is an example of how you can use this package:

//First, install the package:
npm install human-signals

//Include it in your code:
import { signalsByName, signalsByNumber } from 'human-signals';

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

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

Please remember that this package is an ES module, and must be loaded using an import or import() statement, not require().

Where are the human-signals docs?

The documentation for human-signals is embedded within the package's Readme content available on the GitHub repository - https://github.com/ehmicky/human-signals. It offers diverse information about signal names and numbers, descriptions, supported or not status, default actions, whether they can be forced, and which standard defined that specific signal. You can also contribute or submit an issue via the provided GitHub link.