1.0.0-b ā€¢ Published 2 years ago

catchi v1.0.0-b

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Catchi

npm.io npm.io npm.io

šŸŽ‰ An easy and light-weight solution to uncaught errors!


Usage

$ npm install catchi

After installing catchi from your command line, import it into your javascript project.

require("catchi")();

setTimeout(() => {
    console.log("still alive!");
}, 1000)

throw "uncaught error";

output:

still alive!

Arguments

require("catchi")(
    callback?: (err: Error) => void,
    exit?: boolean,
    process?: NodeJS.Process
)