Skip to content

hoa-js/bodyparser

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors