spiffy

POST Parsing

spiffy

Express.js/Connect middleware for POST parsing.

var spiffy = require("spiffy"),
    express = require("express"),
    app = express();
 
app.use(spiffy.middleware({limit: "10mb", encoding: "utf8", delete: false, files: "./", accept: ["text/plain"], keepname: false}));
 
//req.body will hold both files and post queries 
app.post("/", function(reqres) {
  res.end(JSON.stringify(req.body));
})
 
app.listen(80);