body-parser
npmv2.3.0Node.js body parsing middleware
Overview
body-parser is an npm package that node.js body parsing middleware. It is extremely widely used, with about 117M downloads per week and 2 known dependents in the graph. The latest version is 2.3.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need node.js body parsing middleware and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (117M weekly downloads).
- Clear open-source license (MIT).
Cons
- Large dependency tree (19 direct dependencies) increases install size and audit surface.
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of body-parser.
Dependencies
Runtime (9)
Dev (10)
Used by
Popular packages that depend on body-parser.
Frequently installed together
An AST-based pattern checker for JavaScript.
Lightweight debugging utility for Node.js and the browser
The ultimate javascript content-type utility.
HTTP server cookie parsing and serialization
A querystring parser that supports nesting and arrays, with a depth limit
HTTP status utility
Create HTTP error objects
Create and parse HTTP Content-Type header
Run a function exactly one time
Deprecate all the things
Encode a URL to a percent-encoded form, excluding already-encoded sequences
Node.js final http responder
Version history
| Version | Published | License |
|---|---|---|
| 1.20.6 | 10 days ago | MIT |
| 2.3.0latest | 1 month ago | MIT |
| 1.20.5 | 2 months ago | MIT |
| 2.2.2 | 6 months ago | MIT |
| 1.20.4 | 7 months ago | MIT |
| 2.2.1 | 7 months ago | MIT |
| 2.2.0 | 1 year ago | MIT |
| 2.1.0 | 1 year ago | MIT |
| 2.0.2 | 1 year ago | MIT |
| 2.0.1 | 1 year ago | MIT |
| 2.0.0 | 1 year ago | MIT |
| 1.20.3 | 1 year ago | MIT |
| 2.0.0-beta.2 | 3 years ago | MIT |
| 1.20.2 | 3 years ago | MIT |
| 1.20.1 | 3 years ago | MIT |
| 1.20.0 | 4 years ago | MIT |
| 1.19.2 | 4 years ago | MIT |
| 2.0.0-beta.1 | 4 years ago | MIT |
| 1.19.1 | 4 years ago | MIT |
| 1.19.0 | 7 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install body-parser?
Run `npm install body-parser` to add body-parser to your npm project.
What license is body-parser released under?
body-parser is distributed under the MIT license.
How popular is body-parser?
body-parser has approximately 116,968,901 downloads per week and 2 known dependent packages.