raw-body is a Node.js module that reads and returns the entire raw body from a readable stream as a Buffer or string. It validates the body size and expected length (with configurable limit and encoding), making it useful for parsing HTTP request bodies safely.
Project status
- Actively maintained, with a recent upstream push on 2026-07-12 and a new major update (v4.0.0) on that date.
- Update cadence appears active, with updates spanning from late 2025 into mid-2026, and a short gap between the 2026-07-12 change and today (2026-07-16).
AI summary generated
Recent updates
v4.0.0
raw-body v4.0.0 is a major rewrite that migrates the package to TypeScript and ESM-only, adds first-class WHATWG ReadableStream support via a new getRawBodyWeb export, and switches decoding to the native WHATWG TextDecoder. It also introduces stricter input validation, especially around the limit option and stream length overrun behavior.
BreakingFeatures2.5.3
raw-body 2.5.3 mainly updates dependency versions and CI/workflow/document packaging details. Runtime code changes are not visible in the provided diff, with modifications centered on package metadata (dependency ranges, published files) and repository automation/docs.
v3.0.2
v3.0.2 primarily updates tooling and CI, including new GitHub workflows (CodeQL, Scorecard), Dependabot configuration, and a switch to neostandard for linting. It also bumps a dependency (http-errors from 2.0.0 to 2.0.1) and adjusts package publish contents by removing HISTORY.md and SECURITY.md from the npm package.
BreakingSecurityv3.0.1
raw-body v3.0.1 primarily updates dependency versions and fixes metadata. It corrects the package engines field to properly reflect Node.js support (Node >= 0.10) and bumps iconv-lite to 0.7.0 with related internal compatibility adjustments.