# js-error-monitor

> 前端错误异常捕获

Latest version **1.0.0** (published 2019-12-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install js-error-monitor
pnpm add js-error-monitor
yarn add js-error-monitor
bun add js-error-monitor
```

## 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 |
| Published | 2019-12-09 |
| First published | 2019-12-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | vanyee |
| Maintainers | vanyee |

## Links

- npm: https://www.npmjs.com/package/js-error-monitor
- npm.io page: https://npm.io/package/js-error-monitor

## Recent versions

- 1.0.0 (latest) — 2019-12-09

## README

```js
// 引入
import getError from './ monitor';

// 使用，传入回调函数，可获得异常信息
getError((obj) => {
  const { userInfo } = window;
  const params = { ...obj, userInfo: JSON.stringify(userInfo) };
  console.log(params);;
});
```

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