Package detail

@esm2cjs/human-signals

esm2cjs64.5kApache-2.05.0.0

Human-friendly process signals. This is a fork of ehmicky/human-signals, but with CommonJS support.

signal, signals, handlers, error-handling

readme

@esm2cjs/human-signals

This is a fork of https://github.com/ehmicky/human-signals, but automatically patched to support ESM and CommonJS, unlike the original repository.

Install

Use an npm alias to install this package under the original name:

npm i human-signals@npm:@esm2cjs/human-signals
// package.json
"dependencies": {
    "human-signals": "npm:@esm2cjs/human-signals"
}

Note: We strive to use the same versions as the upstream package, but there was a mistake when publishing 4.2.0. We fixed it, but had to re-publish this version as 4.2.1-cjs.0.

Usage

// Using ESM import syntax
import { signalsByName, signalsByNumber } from "human-signals";

// Using CommonJS require()
const { signalsByName, signalsByNumber } = require("human-signals");

For more details, please see the original repository.

Sponsoring

To support my efforts in maintaining the ESM/CommonJS hybrid, please sponsor here.

To support the original author of the module, please sponsor here.

changelog

5.0.0

Breaking changes

  • Minimal supported Node.js version is now 16.17.0

4.3.1

Bug fixes

4.3.0

Features

  • Improve tree-shaking support

4.2.0

Features

  • Reduce npm package size

4.1.0

Features

  • Improve TypeScript types

4.0.0

Breaking changes

  • Minimal supported Node.js version is now 14.18.0

3.0.1

Bug fixes

  • Fix main field in package.json

3.0.0

Breaking changes

  • Minimal supported Node.js version is now 12.20.0
  • This package is now an ES module. It can only be loaded with an import or import() statement, not require(). See this post for more information.

2.1.0

TypeScript types

2.0.0

Breaking changes

  • Minimal supported Node.js version is now 10.17.0