parsed-body
v1.0.0
Published
Get the parsed body of a request
Downloads
5
Readme
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.