Socket
Socket
Sign inDemoInstall

accept-language

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accept-language - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

2

package.json
{
"name": "accept-language",
"version": "2.0.3",
"version": "2.0.4",
"description": "HTTP Accept-Language parser for node",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -20,8 +20,11 @@ accept-language [![Build Status](https://travis-ci.org/tinganho/node-accept-language.png)](https://travis-ci.org/tinganho/node-accept-language)

console.log(accepLanguage.get('en-GB,en;q=0.8,sv'));
// outputs: 'en-US'
/*
'en-US'
*/
var language = acceptLanguage.parse('en-GB,en;q=0.8,sv');
console.log(language);
/*
/*
[

@@ -35,2 +38,3 @@ {

];
*/

@@ -37,0 +41,0 @@ ```

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