Packages

body-parser

2.4.0 · 22 Oct 2026MIT201.6M / weekRepositoryHomepagenpmAtom feed

Your version

1.4.0

19 Jun 2014Where it was published

1.20.9 is the newest release of 1.x.

In short

2 deprecated3 new4 changed1 internal

  • deprecated

    Deprecate bodyParser() middleware; use .json() and .urlencoded() as needed

  • deprecated

    Deprecate urlencoded() without provided extended option

Security

Release note

  • Add text parser

  • Add raw parser

  • Check accepted charset in content-type (accepts utf-8)

  • Check accepted encoding in content-encoding (accepts identity)

  • deprecated

    Deprecate bodyParser() middleware; use .json() and .urlencoded() as needed

  • deprecated

    Deprecate urlencoded() without provided extended option

  • lazy-load urlencoded parsers

  • Parsers split into files for reduced mem usage

  • Support gzip and deflate bodies

    • set inflate: false to turn off