1.0.5 • Published 4 years ago

@cloudseat/micro-body v1.0.5

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

A tiny middleware to parse request body for Zeit's Micro, but also works well with all standard http.IncomingMessage object.

Installation

npm install @cloudseat/micro-body

Usage

const body = require('@cloudseat/micro-body')

module.exports = body((req, res) => {
    console.log(req.body)
})