@hoajs/request-id
v0.1.1
Published
Request ID middleware for Hoa.
Readme
@hoajs/request-id
Request ID middleware for Hoa.
Installation
$ npm i @hoajs/request-id --saveQuick Start
import { Hoa } from 'hoa'
import { requestId } from '@hoajs/request-id'
const app = new Hoa()
app.use(requestId())
app.use(async (ctx) => {
ctx.res.body = `Hello, ${ctx.state.requestId}!`
})
export default appDocumentation
The documentation is available on hoa-js.com
Test (100% coverage)
$ npm testLicense
MIT
