@inialum/error-notification-service-hono-middleware
v0.2.1
Published
Hono middleware for inialum-error-notification-service
Downloads
351
Readme
@inialum/error-notification-service-hono-middleware
Hono middleware for inialum-error-notification-service.
Installation
pnpm add @inialum/error-notification-service-hono-middleware
Usage
import { Hono } from 'hono'
import { notifyError } from '@inialum/error-notification-service-hono-middleware'
const app = new Hono()
app.use('*', await notifyError({
token: 'dummy',
serviceName: 'service-name',
environment: 'production'
}))
app.get('/', (c) => c.text('foo'))
export default app
You can refer to the example project for more details.
Development
Testing
pnpm run test
If you want to run test with coverage report, run this command instead
pnpm run test:coverage
License
Licensed under Apache License 2.0.