tiny-urlencoded-body-parser
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Tiny URL-encoded Body Parser

A tiny middleware that parses URL-encoded request bodies.

Install

npm install --save tiny-urlencoded-body-parser

Usage

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

});

License

MIT © Fabio Spampinato

Package Sidebar

Install

npm i tiny-urlencoded-body-parser

Weekly Downloads

0

Version

2.0.0

License

none

Unpacked Size

5.65 kB

Total Files

11

Last publish

Collaborators

  • fabiospampinato