https://github.com/pirxpilot/parse-accept-language
https://github.com/pirxpilot/parse-accept-language
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pirxpilot/parse-accept-language
- Owner: pirxpilot
- Created: 2015-05-09T00:59:48.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2025-12-25T16:32:58.000Z (7 months ago)
- Last Synced: 2025-12-27T03:23:11.652Z (7 months ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
Awesome Lists containing this project
README
[![NPM version][npm-image]][npm-url]
[![Build Status][build-image]][build-url]
[![Dependency Status][deps-image]][deps-url]
# parse-accept-language
Parse 'Accept-Language' header and cache the result in request.
## Install
```sh
$ npm install --save parse-accept-language
```
## Usage
```js
var parseAcceptLanguage = require('parse-accept-language');
var pal = parseAcceptLanguage(req);
```
## License
MIT © [Damian Krzeminski](https://pirxpilot.me)
[npm-image]: https://img.shields.io/npm/v/parse-accept-language
[npm-url]: https://npmjs.org/package/parse-accept-language
[build-url]: https://github.com/pirxpilot/parse-accept-language/actions/workflows/check.yaml
[build-image]: https://img.shields.io/github/actions/workflow/status/pirxpilot/parse-accept-language/check.yaml?branch=main
[deps-image]: https://img.shields.io/librariesio/release/npm/parse-accept-language
[deps-url]: https://libraries.io/npm/parse-accept-language