exit-x
npmv0.2.2TypeScriptA replacement for process.exit that ensures stdio are fully drained before exiting.
Adopt with care
exit-x is usable, with caveats. Last published 644 days ago. 2 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- CMaintenance: grade C, Fair — worth a look.
Last published 644 days ago. 2 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 59 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 3 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — 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 exit-x 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 >= 0.8.0
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the exit-x README.
var exit = require("exit");
// These lines should appear in the output, EVEN ON WINDOWS.
console.log("omg");
console.error("yay");
// process.exit(5);
exit(5);
// These lines shouldn't appear in the output.
console.log("wtf");
console.error("bro");exit-x 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 |
|---|---|---|---|---|
| exit-xthis page | 0 | 4 | MIT | 1 year ago |
| has-flag | 166.9M | 1 | MIT | 1 day ago |
| open | 130.4M | 4 | MIT | 1 day ago |
| is-wsl | 117.6M | 4 | MIT | 1 day ago |
| unicorn-magic | 31.6M | 1 | MIT | 1 day ago |
| is-docker | 0 | 2 | MIT | 1 day ago |
Dependencies
Declared by exit-x v0.2.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (6)
Used by
Popular packages that depend on exit-x.
Relationship graph
Dependencies (left) and dependents (right) of exit-x.
Frequently installed together
This packages is a collection of utilities and helper functions
A Node.js module for sending notifications on native Mac, Windows (post and pre 8) and Linux (or Growl as fallback)
No description provided.
This package contains shared types of Jest's packages.
No description provided.
No description provided.
TypeScript definitions for node
No description provided.
No description provided.
A drop-in replacement for fs, making various improvements.
Generic configuration validation tool that helps you with warnings, errors and deprecation messages as well as showing users examples of correct configuration.
Convert Windows backslash paths to slash paths
Release history
1 release in the last two years.
| Version | Published | Size | License |
|---|---|---|---|
| 0.2.2latest | 1 year ago | 59 KB | MIT |
| 0.2.1 | 1 year ago | 59 KB | MIT |
Overview
exit-x is an npm package that a replacement for process.exit that ensures stdio are fully drained before exiting. It has 4 known dependents in the graph. The latest version is 0.2.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a replacement for process.exit that ensures stdio are fully drained before exiting 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 (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Frequently asked questions
Should I use exit-x?
exit-x is usable, with caveats. Last published 644 days ago. 2 releases in the last 2 years.
How do I install exit-x?
Run `npm install exit-x` to add exit-x to your npm project.
What license is exit-x released under?
exit-x is distributed under the MIT license.
How popular is exit-x?
npm does not publish download counts. Within PackageGraph's crawl, 4 known packages depend on exit-x.
Is exit-x still maintained?
The most recent release of exit-x (v0.2.2) was published 1 year ago.
Does exit-x run install scripts?
No. exit-x does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.