</>PackageGraphPackageGraph

exit-x

npmv0.2.2TypeScript

A 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

59 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

javascriptFull 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.

PackageWeekly downloadsDependentsLicenseLast release
exit-xthis page04MIT1 year ago
has-flag166.9M1MIT1 day ago
open130.4M4MIT1 day ago
is-wsl117.6M4MIT1 day ago
unicorn-magic31.6M1MIT1 day ago
is-docker02MIT1 day ago

Dependencies

Declared by exit-x v0.2.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (6)

grunt ~0.4.1grunt-cli ^1.5.0grunt-contrib-jshint ~0.6.4grunt-contrib-nodeunit ~0.2.0grunt-contrib-watch ~0.5.3which ~1.0.5

Used by

Popular packages that depend on exit-x.

Relationship graph

Dependencies (left) and dependents (right) of exit-x.

Frequently installed together

Release history

1 release in the last two years.

Recent versions of exit-x
VersionPublishedSizeLicense
0.2.2latest1 year ago59 KBMIT
0.2.11 year ago59 KBMIT

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.

Maintainers

Keywords

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.