Skip to content

Replacements for body-parser

milliparsec

milliparsec is a lightweight alternative to body-parser with a smaller footprint.

Example:

js
import bodyParser from 'body-parser'
import { json, urlencoded } from 'milliparsec'
import express from 'express'

const app = express()

app.use(bodyParser.json()) 
app.use(bodyParser.urlencoded({ extended: true })) 

app.use(json()) 
app.use(urlencoded()) 

For API differences and feature comparison, see the migration.md.

Released under the MIT License. (61697726)