Minimalistic wrapper around formidable.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
.npmignore
.travis.yml
README.md
example-file.txt
index.js
package.json
test.js

README.md

post-data Build Status

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.