# shimo-koa-raven

> raven middleware for koa.

Latest version **1.3.0** (published 2017-07-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install shimo-koa-raven
pnpm add shimo-koa-raven
yarn add shimo-koa-raven
bun add shimo-koa-raven
```

## 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.3.0 |
| Published | 2017-07-19 |
| First published | 2016-12-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+11 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | nswbmw |
| Keywords | raven, sentry, koa, error |

## Links

- npm: https://www.npmjs.com/package/shimo-koa-raven
- Repository: https://github.com/shimohq/shimo-koa-raven
- Homepage: https://github.com/shimohq/shimo-koa-raven#readme
- Issues: https://github.com/shimohq/shimo-koa-raven/issues
- npm.io page: https://npm.io/package/shimo-koa-raven

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) 2.5.1
- [raven](https://npm.io/package/raven.md) 1.1.1
- [lodash](https://npm.io/package/lodash.md) 4.17.4

## 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.3.0 (latest) — 2017-07-19
- 1.2.1 — 2017-05-23
- 1.2.0 — 2017-05-23
- 1.1.0 — 2017-01-04
- 1.0.0 — 2016-12-22

## README

## koa-raven

raven middleware for koa@1.

### Install

    npm i koa-raven --save

### Usage

**raven(DSN[, opts])**

```
'use strict';

const koa = require('koa');
const raven = require('koa-raven');

const app = koa();

app.use(raven('xxx'));
app.use(function *() {
  throw new Error('test');
});

app.listen(3000);
```

or:

```
'use strict';

const koa = require('koa');
const raven = require('koa-raven');

const app = koa();

app.use(raven('xxx'))
app.use(function* () {
  this.raven.captureException(new Error('test'), { extra: { name: 'tom' } })
})

app.listen(3000);
```

### Options

see: [https://docs.sentry.io/clients/node/config/](https://docs.sentry.io/clients/node/config/).

### License

MIT

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