Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

A tiny middleware that parses URL-encoded request bodies.

License

Notifications You must be signed in to change notification settings

fabiospampinato/tiny-urlencoded-body-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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