0.0.1 • Published 9 years ago

text-body v0.0.1

Weekly downloads
2
License
WTFPL
Repository
github
Last release
9 years ago

text-body

Takes a text/plain request body and puts it on the req.body property.

Install

npm install text-body

Example

var textbody = require('text-body')({ // Options
    limit: 512 // Optional limit - Limit body size
});

// or use it as you would any middlware
app.post('/example/page', textbody, function(req, res) {
    // req.body is either the body content or an empty string ('')
    res.send('Hello ' + req.body);
});