/http-body-parse

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

Primary LanguageJavaScript

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