Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/lcid')
-rw-r--r--node_modules/lcid/index.js11
-rw-r--r--node_modules/lcid/license20
-rw-r--r--node_modules/lcid/package.json31
-rw-r--r--node_modules/lcid/readme.md10
4 files changed, 41 insertions, 31 deletions
diff --git a/node_modules/lcid/index.js b/node_modules/lcid/index.js
index b666ef00a..69bd3d231 100644
--- a/node_modules/lcid/index.js
+++ b/node_modules/lcid/index.js
@@ -1,10 +1,9 @@
'use strict';
-const invertKv = require('invert-kv');
-const all = require('./lcid.json');
+var invertKv = require('invert-kv');
+var all = require('./lcid.json');
+var inverted = invertKv(all);
-const inverted = invertKv(all);
-
-exports.from = lcidCode => {
+exports.from = function (lcidCode) {
if (typeof lcidCode !== 'number') {
throw new TypeError('Expected a number');
}
@@ -12,7 +11,7 @@ exports.from = lcidCode => {
return inverted[lcidCode];
};
-exports.to = localeId => {
+exports.to = function (localeId) {
if (typeof localeId !== 'string') {
throw new TypeError('Expected a string');
}
diff --git a/node_modules/lcid/license b/node_modules/lcid/license
index e7af2f771..654d0bfe9 100644
--- a/node_modules/lcid/license
+++ b/node_modules/lcid/license
@@ -1,9 +1,21 @@
-MIT License
+The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/lcid/package.json b/node_modules/lcid/package.json
index 3de023722..b96236513 100644
--- a/node_modules/lcid/package.json
+++ b/node_modules/lcid/package.json
@@ -1,27 +1,27 @@
{
- "_from": "lcid@^2.0.0",
- "_id": "lcid@2.0.0",
+ "_from": "lcid@^1.0.0",
+ "_id": "lcid@1.0.0",
"_inBundle": false,
- "_integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==",
+ "_integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=",
"_location": "/lcid",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
- "raw": "lcid@^2.0.0",
+ "raw": "lcid@^1.0.0",
"name": "lcid",
"escapedName": "lcid",
- "rawSpec": "^2.0.0",
+ "rawSpec": "^1.0.0",
"saveSpec": null,
- "fetchSpec": "^2.0.0"
+ "fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/os-locale"
],
- "_resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz",
- "_shasum": "6ef5d2df60e52f82eb228a4c373e8d1f397253cf",
- "_spec": "lcid@^2.0.0",
- "_where": "/Users/mperrotte/npminc/cli/node_modules/os-locale",
+ "_resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz",
+ "_shasum": "308accafa0bc483a3867b4b6f2b9506251d1b835",
+ "_spec": "lcid@^1.0.0",
+ "_where": "/Users/isaacs/dev/npm/cli/node_modules/os-locale",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
@@ -32,16 +32,15 @@
},
"bundleDependencies": false,
"dependencies": {
- "invert-kv": "^2.0.0"
+ "invert-kv": "^1.0.0"
},
"deprecated": false,
"description": "Mapping between standard locale identifiers and Windows locale identifiers (LCID)",
"devDependencies": {
- "ava": "*",
- "xo": "*"
+ "ava": "0.0.4"
},
"engines": {
- "node": ">=6"
+ "node": ">=0.10.0"
},
"files": [
"index.js",
@@ -73,7 +72,7 @@
"url": "git+https://github.com/sindresorhus/lcid.git"
},
"scripts": {
- "test": "xo && ava"
+ "test": "node test.js"
},
- "version": "2.0.0"
+ "version": "1.0.0"
}
diff --git a/node_modules/lcid/readme.md b/node_modules/lcid/readme.md
index 2b1aa798b..bee4a7016 100644
--- a/node_modules/lcid/readme.md
+++ b/node_modules/lcid/readme.md
@@ -1,8 +1,8 @@
# 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](http://en.wikipedia.org/wiki/Locale) and [Windows locale identifiers (LCID)](http://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.
+Based on the [mapping](https://github.com/python/cpython/blob/be2a1a76fa43bb1ea1b3577bb5bdd506a2e90e37/Lib/locale.py#L1395-L1604) used in the Python standard library.
The mapping itself is just a [JSON file](lcid.json) and can be used wherever.
@@ -10,14 +10,14 @@ The mapping itself is just a [JSON file](lcid.json) and can be used wherever.
## Install
```
-$ npm install lcid
+$ npm install --save lcid
```
## Usage
```js
-const lcid = require('lcid');
+var lcid = require('lcid');
lcid.from(1044);
//=> 'nb_NO'
@@ -32,4 +32,4 @@ lcid.all;
## License
-MIT © [Sindre Sorhus](https://sindresorhus.com)
+MIT © [Sindre Sorhus](http://sindresorhus.com)