</>PackageGraphPackageGraph

raw-body

npmv4.0.0TypeScript

Get and validate the raw body of a readable stream.

Safe to adopt

Yes — raw-body scores well across adoption, maintenance, weight, supply chain, and licensing. 128.5M downloads per week and 3 known dependents. Last published 60 days ago. 4 releases in the last 2 years.

  • AAdoption: grade A, Excellent.

    128.5M downloads per week and 3 known dependents.

  • AMaintenance: grade A, Excellent.

    Last published 60 days ago. 4 releases in the last 2 years.

  • BWeight: grade B, Good.

    Pulls in 7 transitive packages, about 111 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 5 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding raw-body to a project.

2
Direct dependencies

Runtime packages this one declares itself.

7
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

111 KB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

ISCMIT

Every license you inherit by installing raw-body, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=22
Module format
ESM only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the raw-body README.

import getRawBody, { getRawBodyWeb } from 'raw-body'

Dependencies

Declared by raw-body v4.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (11)

@size-limit/preset-small-lib ^12.1.0@types/bytes ^3.1.5@types/http-errors ^2.0.5@types/node ^26.1.0@vitest/coverage-v8 ^4.1.10eslint ^9.0.0iconv-lite ^0.7.0neostandard ^0.13.0size-limit ^12.1.0typescript ^6.0.3vitest ^4.1.10

Used by

Popular packages that depend on raw-body.

Relationship graph

Dependencies (left) and dependents (right) of raw-body.

Frequently installed together

Release history

4 releases in the last two years, typically about 104 days apart.

Recent versions of raw-body
VersionPublishedSizeLicense
4.0.0latest2 months ago29 KBMIT
2.5.39 months ago18 KBMIT
3.0.29 months ago18 KBMIT
3.0.11 year ago26 KBMIT
3.0.02 years ago26 KBMIT
3.0.0-beta.13 years ago25 KBMIT
2.5.23 years ago25 KBMIT
2.5.14 years ago25 KBMIT
2.5.04 years ago25 KBMIT
2.4.34 years ago22 KBMIT
2.4.24 years ago22 KBMIT
2.4.17 years ago22 KBMIT
2.4.07 years ago22 KBMIT
2.3.38 years ago22 KBMIT
2.3.29 years agoMIT

Overview

raw-body is an npm package that get and validate the raw body of a readable stream. It is extremely widely used, with about 128.5M downloads per week and 3 known dependents in the graph. The latest version is 4.0.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need get and validate the raw body of a readable stream and value a battle-tested, widely-adopted solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Large, well-established user base (128.5M weekly downloads).
  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use raw-body?

Yes — raw-body scores well across adoption, maintenance, weight, supply chain, and licensing. 128.5M downloads per week and 3 known dependents. Last published 60 days ago. 4 releases in the last 2 years.

How do I install raw-body?

Run `npm install raw-body` to add raw-body to your npm project.

How many dependencies does raw-body have?

raw-body declares 13 direct dependencies and pulls in 7 packages in total once its runtime tree is resolved totalling about 111 KB on disk.

What license is raw-body released under?

raw-body is distributed under the MIT license. Its dependency tree also includes: ISC, MIT.

How popular is raw-body?

raw-body has approximately 128,537,919 downloads per week and 3 known dependent packages.

Is raw-body still maintained?

The most recent release of raw-body (v4.0.0) was published 2 months ago.

Does raw-body run install scripts?

No. raw-body does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.