Body parser middleware for Hoa.
$ npm i @hoajs/bodyparser --saveimport { Hoa } from 'hoa'
import { bodyParser } from '@hoajs/bodyparser'
const app = new Hoa()
app.use(bodyParser())
app.use(async (ctx) => {
ctx.res.body = ctx.req.body
})
export default appThe documentation is available on hoa-js.com
$ npm testMIT