@hoajs/sentry
v0.1.0
Published
Sentry middleware for Hoa.
Readme
@hoajs/sentry
Sentry middleware for Hoa.
Installation
$ npm i @hoajs/sentry --saveQuick Start
import { Hoa } from 'hoa'
import { sentry } from '@hoajs/sentry'
const app = new Hoa()
app.use(sentry({ dsn: 'xxx' }))
app.use(async (ctx) => {
ctx.throw(400, 'Some error')
})
export default appDocumentation
The documentation is available on hoa-js.com
Test (100% coverage)
$ npm testLicense
MIT
