Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 1.92 KB

File metadata and controls

23 lines (21 loc) · 1.92 KB

Migrating from body-parser

API body-parser milliparsec
inflate option
limit option ✅ (payloadLimit in milliparsec)
verify option
type option ✅ (type in milliparsec)*
raw()
json()
json() reviver option
urlencoded()
urlencoded() parameterLimit option
urlencoded() extended option
urlencoded() defaultCharset option
urlencoded() charsetSentinel option
urlencoded() interpretNumericEntities option
urlencoded() depth option

* The type option can only be a function. milliparsec does not depend on the type-is package and does not support wildcard MIME strings (for example */json). Unlike body-parser, milliparsec does not set default type on parsers.