exit-it

1.6.6 • Public • Published

exit-it

Exit-it is a wrapper for process.exit().

Install

npm install exit-it

Usage

import { exit } from "./index.js";

exit(1);

or

npx exit-it

This will spawn a program that immediately exits (after printing some info).

features

  • return any exit code you want!

    exit() was made with the power-user in mind, letting you signal any number of error-codes to the parent process! The number can mean anything you want! (but usually 0 is reserved for 'success').

  • uses github provenance!

    good practice for developers to do meaningful audits of the NPM package!

Package Sidebar

Install

npm i exit-it

Weekly Downloads

1

Version

1.6.6

License

ISC

Unpacked Size

3.32 kB

Total Files

5

Last publish

Collaborators

  • trustmysoftware