1.0.0-b • Published 4 years ago
catchi
Licence
ISC
Version
1.0.0-b
Deps
0
Size
1 kB
Vulns
0
Weekly
0
Catchi
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
)