# @hapi/content

> HTTP Content-* headers parsing

Latest version **6.0.2** (published 2026-05-06) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @hapi/content
pnpm add @hapi/content
yarn add @hapi/content
bun add @hapi/content
```

## Health

**Score 53/100 (C)** — status: active.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 6.0.2 |
| Published | 2026-05-06 |
| First published | 2019-04-02 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | separate (@types/hapi__content) |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Maintainers | nlf, devinivy, wyatt, lloydbenson, cjihrig, marsup |
| Keywords | HTTP, header, content, content-type, content-disposition |

## Links

- npm: https://www.npmjs.com/package/@hapi/content
- Repository: https://github.com/hapijs/content
- Homepage: https://github.com/hapijs/content#readme
- Issues: https://github.com/hapijs/content/issues
- npm.io page: https://npm.io/package/@hapi/content

## Dependencies (1)

- [@hapi/boom](https://npm.io/package/@hapi/boom.md) ^10.0.0

## Recent versions

- 6.0.2 (latest) — 2026-05-06
- 4.1.1 (lts) — 2020-02-13
- 6.0.1 — 2026-04-02
- 6.0.0 — 2022-05-24
- 5.0.2 — 2020-02-13
- 5.0.1 — 2020-02-13
- 5.0.0 — 2020-01-05
- 4.1.0 — 2019-04-02

## README

<a href="https://hapi.dev"><img src="https://raw.githubusercontent.com/hapijs/assets/master/images/family.png" width="180px" align="right" /></a>

# @hapi/content

#### HTTP Content-* headers parsing.

**content** is part of the **hapi** ecosystem and was designed to work seamlessly with the [hapi web framework](https://hapi.dev) and its other components (but works great on its own or with other frameworks). If you are using a different web framework and find this module useful, check out [hapi](https://hapi.dev) – they work even better together.

### Visit the [hapi.dev](https://hapi.dev) Developer Portal for tutorials, documentation, and support

## Useful resources

- [Documentation and API](https://hapi.dev/family/content/)
- [Versions status](https://hapi.dev/resources/status/#content) (builds, dependencies, node versions, licenses, eol)
- [Changelog](https://hapi.dev/family/content/changelog/)
- [Project policies](https://hapi.dev/policies/)
- [Free and commercial support options](https://hapi.dev/support/)

---
_Source: https://npm.io/package/@hapi/content · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
