signal-exit
npmv4.1.0TypeScriptwhen you want to fire an event no matter how a process exits.
Not recommended for new projects
No — signal-exit should not be adopted for new projects. Last published 1139 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 1139 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 75 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
ISC — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding signal-exit to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=14
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the signal-exit README.
// Hybrid module, either works
import { onExit } from 'signal-exit'
// or:
// const { onExit } = require('signal-exit')
onExit((code, signal) => {
console.log('process exited!', code, signal)
})signal-exit vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| signal-exitthis page | 0 | 2 | ISC | 3 years ago |
| exit-x | 0 | 4 | MIT | 1 day ago |
| abort-controller | 0 | 4 | MIT | 1 day ago |
Dependencies
Declared by signal-exit v4.1.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (10)
Used by
Popular packages that depend on signal-exit.
Relationship graph
Dependencies (left) and dependents (right) of signal-exit.
Frequently installed together
Plugin utilities for Rolldown
Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.
Simple yet powerful framework for building command-line apps.
The modular and type safe schema library for validating structural data
Universal filesystem path utils
the most correct and second fastest glob implementation in JavaScript
Generates and consumes source maps
Release history
No releases in the last two years, typically about 25 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 4.1.0latest | 3 years ago | 75 KB | ISC |
| 4.0.3 | 3 years ago | 72 KB | ISC |
| 4.0.2 | 3 years ago | 70 KB | ISC |
| 4.0.1 | 3 years ago | 71 KB | ISC |
| 4.0.0 | 3 years ago | 68 KB | ISC |
| 3.0.7 | 4 years ago | 9.7 KB | ISC |
| 3.0.6 | 4 years ago | 9.7 KB | ISC |
| 3.0.5 | 5 years ago | 9.0 KB | ISC |
| 3.0.4 | 5 years ago | 9.0 KB | ISC |
| 3.0.3 | 6 years ago | 9.6 KB | ISC |
| 3.0.2 | 9 years ago | — | ISC |
| 3.0.1 | 10 years ago | — | ISC |
| 3.0.0 | 10 years ago | — | ISC |
| 3.0.0-candidate | 10 years ago | — | ISC |
| 2.1.2 | 11 years ago | — | ISC |
Overview
signal-exit is an npm package that when you want to fire an event no matter how a process exits. It has 2 known dependents in the graph. The latest version is 4.1.0, released under the ISC license.
Who should use it
Teams working in the npm ecosystem who need when you want to fire an event no matter how a process exits and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (ISC).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Funding
Frequently asked questions
Should I use signal-exit?
No — signal-exit should not be adopted for new projects. Last published 1139 days ago.
How do I install signal-exit?
Run `npm install signal-exit` to add signal-exit to your npm project.
What license is signal-exit released under?
signal-exit is distributed under the ISC license.
How popular is signal-exit?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on signal-exit.
Is signal-exit still maintained?
The most recent release of signal-exit (v4.1.0) was published 3 years ago.
Does signal-exit run install scripts?
No. signal-exit does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.