Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Minimalistic wrapper around formidable.
JavaScript
Branch: master
Failed to load latest commit information.
.gitignore first commit
.npmignore first commit
.travis.yml Create .travis.yml
README.md Update README.md
example-file.txt first commit
index.js first commit
package.json first commit
test.js first commit

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.

Something went wrong with that request. Please try again.