post-data

A simple function to get the post data from a NodeJS request

npm install post-data
3 downloads in the last week
16 downloads in the last month

post-data

Minimalistic wrapper around formidable.

Install

$ npm install post-data

Usage

postdata = require('post-data')

postdata(request, function (error, data) {
  if (error) throw error;

  data
  // => "{ \"foo\": \"bar\" }
});

Parsing:

postdata(request, JSON.parse, function (error, data) {
  data
  // => { "foo": "bar" }
})

See test.js for more info.

npm loves you