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