Socket
Socket
Sign inDemoInstall

lcid

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 3.0.0

index.d.ts

18

package.json
{
"name": "lcid",
"version": "2.0.0",
"version": "3.0.0",
"description": "Mapping between standard locale identifiers and Windows locale identifiers (LCID)",

@@ -13,10 +13,12 @@ "license": "MIT",

"engines": {
"node": ">=6"
"node": ">=8"
},
"scripts": {
"test": "xo && ava"
"test": "xo && ava && tsd"
},
"files": [
"index.js",
"lcid.json"
"index.d.ts",
"lcid.json",
"lcid.json.d.ts"
],

@@ -27,3 +29,2 @@ "keywords": [

"string",
"str",
"id",

@@ -43,8 +44,9 @@ "identifier",

"dependencies": {
"invert-kv": "^2.0.0"
"invert-kv": "^3.0.0"
},
"devDependencies": {
"ava": "*",
"xo": "*"
"ava": "^1.4.1",
"tsd": "^0.7.2",
"xo": "^0.24.0"
}
}
# lcid [![Build Status](https://travis-ci.org/sindresorhus/lcid.svg?branch=master)](https://travis-ci.org/sindresorhus/lcid)
> Mapping between [standard locale identifiers](https://en.wikipedia.org/wiki/Locale_(computer_software)) and [Windows locale identifiers (LCID)](http://en.wikipedia.org/wiki/Locale#Specifics_for_Microsoft_platforms)
> Mapping between [standard locale identifiers](https://en.wikipedia.org/wiki/Locale_(computer_software)) and [Windows locale identifiers (LCID)](https://en.wikipedia.org/wiki/Locale#Specifics_for_Microsoft_platforms)
Based on the [mapping](https://github.com/python/cpython/blob/8f7bb100d0fa7fb2714f3953b5b627878277c7c6/Lib/locale.py#L1465-L1674) used in the Python standard library.
The mapping itself is just a [JSON file](lcid.json) and can be used wherever.
The mapping itself is just a [JSON file](lcid.json) and can be used anywhere.

@@ -29,3 +29,3 @@

lcid.all;
//=> {'af_ZA': 1078, ...}
//=> {'af_ZA': 1078, …}
```

@@ -32,0 +32,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc