# @netlify/headers-parser

> Parses Netlify headers into a JavaScript object representation

Latest version **10.1.1** (published 2026-08-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @netlify/headers-parser
pnpm add @netlify/headers-parser
yarn add @netlify/headers-parser
bun add @netlify/headers-parser
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 10.1.1 |
| Published | 2026-08-12 |
| First published | 2024-12-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.12.0 |
| Dependencies | 2 |
| Unpacked size | 18.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 258 |
| Author | Netlify |
| Maintainers | netlify-bot, mikewen, youvalv, serhalp-netlify, mlgualtieri-gatsby |
| Keywords | netlify |

## Links

- npm: https://www.npmjs.com/package/@netlify/headers-parser
- Repository: https://github.com/netlify/build
- Homepage: https://github.com/netlify/build#readme
- Issues: https://github.com/netlify/build/issues
- npm.io page: https://npm.io/package/@netlify/headers-parser

## Dependencies (2)

- [smol-toml](https://npm.io/package/smol-toml.md) ^1.5.2
- [escape-string-regexp](https://npm.io/package/escape-string-regexp.md) ^5.0.0

## Recent versions

- 10.1.1 (latest) — 2026-08-12
- 10.1.0 — 2026-07-17
- 10.0.0 — 2026-06-16
- 9.0.3 — 2026-02-25
- 9.0.2 — 2025-08-08
- 9.0.1 — 2025-05-29
- 9.0.0 — 2025-05-14
- 8.0.0 — 2025-03-17
- 7.3.0 — 2024-12-14
- 7.2.0 — 2024-12-13

## README

# Netlify Headers Parser

Parses headers rules from both `_headers` and `netlify.toml` and normalizes them to an array of objects

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