# catchi

> 🎉 An easy and light-weight solution to uncaught errors!

Latest version **1.0.0-b** (published 2022-09-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install catchi
pnpm add catchi
yarn add catchi
bun add catchi
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-b |
| Published | 2022-09-06 |
| First published | 2022-08-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ephf |
| Maintainers | ephf |
| Keywords | uncaught, error, handle, handler, process |

## Links

- npm: https://www.npmjs.com/package/catchi
- npm.io page: https://npm.io/package/catchi

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 1.0.0-b (latest) — 2022-09-06
- 1.0.0 — 2022-08-14

## README

# Catchi

![](https://img.shields.io/bundlephobia/min/catchi?label=size&style=flat-square) ![](https://img.shields.io/npm/dt/catchi?style=flat-square) ![](https://img.shields.io/npm/v/catchi?style=flat-square)

🎉 An easy and light-weight solution to uncaught errors!

---

## Usage

```bash
$ npm install catchi
```

After installing catchi from your command line, import it into your javascript project.

```js
require("catchi")();

setTimeout(() => {
    console.log("still alive!");
}, 1000)

throw "uncaught error";
```

output:

```
still alive!
```

#### Arguments

```ts
require("catchi")(
    callback?: (err: Error) => void,
    exit?: boolean,
    process?: NodeJS.Process
)
```

---
_Source: https://npm.io/package/catchi · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
