# accept

> HTTP Accept-* headers parsing

Latest version **3.1.3** (published 2018-11-03) · BSD-3-Clause license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install accept
pnpm add accept
yarn add accept
bun add accept
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.1.3 |
| Published | 2018-11-03 |
| First published | 2014-10-03 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | separate (@types/accept) |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 16.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 55 |
| Maintainers | hueniverse, marsup, nlf, wyatt |
| Keywords | HTTP, header, accept, accept-encoding |

## Links

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

## Dependencies (2)

- [boom](https://npm.io/package/boom.md) 7.x.x
- [hoek](https://npm.io/package/hoek.md) 6.x.x

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 3.1.3 (latest) — 2018-11-03
- 2.2.3 (v2-legacy) — 2024-01-01
- 3.1.2 — 2018-11-01
- 3.1.1 — 2018-10-30
- 3.0.2 — 2017-11-03
- 3.0.1 — 2017-09-26
- 3.0.0 — 2017-09-25
- 2.1.4 — 2017-05-28
- 2.1.3 — 2016-09-07
- 2.1.2 — 2016-07-27
- 2.1.1 — 2016-05-06
- 2.1.0 — 2015-12-22
- 2.0.0 — 2015-11-01
- 1.1.0 — 2015-07-09
- 1.0.0 — 2014-10-03
- … 1 more at https://npm.io/package/accept/versions

## README

# Accept

HTTP Accept-* headers parsing.

[![npm version](https://badge.fury.io/js/accept.svg)](http://badge.fury.io/js/accept) [![Build Status](https://secure.travis-ci.org/hapijs/accept.png)](http://travis-ci.org/hapijs/accept)

Lead Maintainer - [Eran Hammer](https://github.com/hueniverse)

## Introduction

Accept helps to answer the question of how best to respond to a HTTP request, based on the requesting browser's capabilities.  Accept will parse the headers of a HTTP request and tell you what the preferred encoding is, what language should be used, and what charsets and media types are accepted.

Additional details about Accept headers and content negotiation can be found in [IETF RFC 7231, Section 5.3](https://tools.ietf.org/html/rfc7231#section-5.3).

## API

For information on using Accept see the [API documentation](API.md).

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