npm.io
1.0.0 • Published 11 years ago

parsed-body

Licence
MIT
Version
1.0.0
Deps
1
Vulns
0
Weekly
0

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.

Keywords