Socket
Socket
Sign inDemoInstall

@hapi/accept

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hapi/accept - npm Package Compare versions

Comparing version 3.2.3 to 4.0.0

lib/index.d.ts

1

lib/media.js
'use strict';
const Hoek = require('@hapi/hoek');

@@ -5,0 +4,0 @@ const Boom = require('@hapi/boom');

{
"name": "@hapi/accept",
"description": "HTTP Accept-* headers parsing",
"version": "3.2.3",
"repository": "git://github.com/hapijs/accept",
"main": "lib/index.js",
"keywords": [
"HTTP",
"header",
"accept",
"accept-encoding"
],
"dependencies": {
"@hapi/boom": "7.x.x",
"@hapi/hoek": "8.x.x"
},
"devDependencies": {
"@hapi/code": "6.x.x",
"@hapi/lab": "20.x.x"
},
"scripts": {
"test": "lab -a @hapi/code -t 100 -L",
"test-cov-html": "lab -a @hapi/code -r html -o coverage.html"
},
"license": "BSD-3-Clause"
"name": "@hapi/accept",
"description": "HTTP Accept-* headers parsing",
"version": "4.0.0",
"repository": "git://github.com/hapijs/accept",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"keywords": [
"HTTP",
"header",
"accept",
"accept-encoding"
],
"files": [
"lib"
],
"dependencies": {
"@hapi/boom": "8.x.x",
"@hapi/hoek": "8.x.x"
},
"devDependencies": {
"@hapi/code": "6.x.x",
"@hapi/lab": "20.x.x"
},
"scripts": {
"test": "lab -a @hapi/code -t 100 -L -Y",
"test-cov-html": "lab -a @hapi/code -r html -o coverage.html"
},
"license": "BSD-3-Clause"
}

@@ -1,17 +0,16 @@

<a href="http://hapijs.com"><img src="https://raw.githubusercontent.com/hapijs/assets/master/images/family.png" width="180px" align="right" /></a>
<a href="https://hapi.dev"><img src="https://raw.githubusercontent.com/hapijs/assets/master/images/family.png" width="180px" align="right" /></a>
# Accept
# @hapi/accept
HTTP Accept-* headers parsing.
#### HTTP Accept-* headers parsing.
[![Build Status](https://secure.travis-ci.org/hapijs/accept.png)](http://travis-ci.org/hapijs/accept)
**accept** 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.
## Introduction
### Visit the [hapi.dev](https://hapi.dev) Developer Portal for tutorials, documentation, and support
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.
## Useful resources
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).
- [Documentation and API](https://hapi.dev/family/accept/)
- [Version status](https://hapi.dev/resources/status/#accept) (builds, dependencies, node versions, licenses, eol)
- [Project policies](https://hapi.dev/policies/)
- [Free and commercial support options](https://hapi.dev/support/)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc