Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

http-body-parse

srcagency5MIT2.0.2

Parse and cache the body of an http request (supports json, form data and nested form data)

http, body, request, parse

readme

http-body-parse

Parse and cache the body of an http request (supports json, form data and nested form data)

Credits to the team of formidable

Installation

npm install http-body-parse

Usage

The result is cached and only ever parsed once per request.

var httpBodyParse = require('http-body-parse');

var data = httpBodyParse(request)
    .then(function( fields ){
        console.log(fields);
    });

License

MIT © src.agency