Skip to content

Repository files navigation

@hoajs/bodyparser

Body parser middleware for Hoa.

Installation

$ npm i @hoajs/bodyparser --save

Quick Start

import { 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 app

Documentation

The documentation is available on hoa-js.com

Test (100% coverage)

$ npm test

License

MIT

About

Body parser middleware for Hoa.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages