parsed-body

1.0.0 • Public • Published

parsed-body

Install

npm install --save parsed-body

Usage

import parsedBody from 'parsed-body/json';
 
async req => {
  const body = await parsedBody(req);
  console.log('body:', body);
}

Important: This consumes the body, so it isn't always safe to call it multiple times. If you use the same version of parsed-body, it will work though.

Package Sidebar

Install

npm i parsed-body

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • quinnjs
  • jkrems