A tiny middleware that parses URL-encoded request bodies.
npm install --save tiny-urlencoded-body-parser
import express from 'express';
import urlencoded from 'tiny-urlencoded-body-parser';
const app = express ();
app.use ( urlencoded ({ limit: 100_000 }) ); // 100KB limit
app.post ( '/', req => {
console.log ( req.body ); // The result of URL-decoding the body
});
MIT © Fabio Spampinato