diff options
| author | ruki <waruqi@gmail.com> | 2018-11-08 00:38:48 +0800 |
|---|---|---|
| committer | ruki <waruqi@gmail.com> | 2018-11-07 21:53:09 +0800 |
| commit | 26105034da4fcce7ac883c899d781f016559310d (patch) | |
| tree | c459a5dc4e3aa0972d9919033ece511ce76dd129 /node_modules/unicode-property-aliases-ecmascript | |
| parent | 2c77f00f1a7ecb6c8192f9c16d3b2001b254a107 (diff) | |
| download | xmake-docs-26105034da4fcce7ac883c899d781f016559310d.tar.gz xmake-docs-26105034da4fcce7ac883c899d781f016559310d.zip | |
switch to vuepress
Diffstat (limited to 'node_modules/unicode-property-aliases-ecmascript')
4 files changed, 150 insertions, 0 deletions
diff --git a/node_modules/unicode-property-aliases-ecmascript/LICENSE-MIT.txt b/node_modules/unicode-property-aliases-ecmascript/LICENSE-MIT.txt new file mode 100644 index 00000000..a41e0a7e --- /dev/null +++ b/node_modules/unicode-property-aliases-ecmascript/LICENSE-MIT.txt @@ -0,0 +1,20 @@ +Copyright Mathias Bynens <https://mathiasbynens.be/> + +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 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/unicode-property-aliases-ecmascript/README.md b/node_modules/unicode-property-aliases-ecmascript/README.md new file mode 100644 index 00000000..bc4cc811 --- /dev/null +++ b/node_modules/unicode-property-aliases-ecmascript/README.md @@ -0,0 +1,38 @@ +# unicode-property-aliases-ecmascript [](https://travis-ci.org/mathiasbynens/unicode-property-aliases-ecmascript) + +_unicode-property-aliases-ecmascript_ offers Unicode property alias mappings in an easy-to-consume JavaScript format. It only contains the Unicode property names that are supported in [ECMAScript RegExp property escapes](https://github.com/tc39/proposal-regexp-unicode-property-escapes). + +It’s based on [the `PropertyAliases.txt` data for Unicode v11.0.0](http://unicode.org/Public/11.0.0/ucd/PropertyAliases.txt). + +## Installation + +To use _unicode-property-aliases-ecmascript_ programmatically, install it as a dependency via [npm](https://www.npmjs.com/): + +```bash +$ npm install unicode-property-aliases-ecmascript +``` + +Then, `require` it: + +```js +const propertyAliases = require('unicode-property-aliases-ecmascript'); +``` + +## Usage + +This module exports a `Map` object. The most common usage is to convert a property alias to its canonical form: + +```js +propertyAliases.get('scx') +// → 'Script_Extensions' +``` + +## Author + +| [](https://twitter.com/mathias "Follow @mathias on Twitter") | +|---| +| [Mathias Bynens](https://mathiasbynens.be/) | + +## License + +_unicode-property-aliases-ecmascript_ is available under the [MIT](https://mths.be/mit) license. diff --git a/node_modules/unicode-property-aliases-ecmascript/index.js b/node_modules/unicode-property-aliases-ecmascript/index.js new file mode 100755 index 00000000..08ab1008 --- /dev/null +++ b/node_modules/unicode-property-aliases-ecmascript/index.js @@ -0,0 +1,51 @@ +// Generated using `npm run build`. Do not edit! +module.exports = new Map([ + ['scx', 'Script_Extensions'], + ['sc', 'Script'], + ['gc', 'General_Category'], + ['AHex', 'ASCII_Hex_Digit'], + ['Alpha', 'Alphabetic'], + ['Bidi_C', 'Bidi_Control'], + ['Bidi_M', 'Bidi_Mirrored'], + ['Cased', 'Cased'], + ['CI', 'Case_Ignorable'], + ['CWCF', 'Changes_When_Casefolded'], + ['CWCM', 'Changes_When_Casemapped'], + ['CWKCF', 'Changes_When_NFKC_Casefolded'], + ['CWL', 'Changes_When_Lowercased'], + ['CWT', 'Changes_When_Titlecased'], + ['CWU', 'Changes_When_Uppercased'], + ['Dash', 'Dash'], + ['Dep', 'Deprecated'], + ['DI', 'Default_Ignorable_Code_Point'], + ['Dia', 'Diacritic'], + ['Ext', 'Extender'], + ['Gr_Base', 'Grapheme_Base'], + ['Gr_Ext', 'Grapheme_Extend'], + ['Hex', 'Hex_Digit'], + ['IDC', 'ID_Continue'], + ['Ideo', 'Ideographic'], + ['IDS', 'ID_Start'], + ['IDSB', 'IDS_Binary_Operator'], + ['IDST', 'IDS_Trinary_Operator'], + ['Join_C', 'Join_Control'], + ['LOE', 'Logical_Order_Exception'], + ['Lower', 'Lowercase'], + ['Math', 'Math'], + ['NChar', 'Noncharacter_Code_Point'], + ['Pat_Syn', 'Pattern_Syntax'], + ['Pat_WS', 'Pattern_White_Space'], + ['QMark', 'Quotation_Mark'], + ['Radical', 'Radical'], + ['RI', 'Regional_Indicator'], + ['SD', 'Soft_Dotted'], + ['STerm', 'Sentence_Terminal'], + ['Term', 'Terminal_Punctuation'], + ['UIdeo', 'Unified_Ideograph'], + ['Upper', 'Uppercase'], + ['VS', 'Variation_Selector'], + ['WSpace', 'White_Space'], + ['space', 'White_Space'], + ['XIDC', 'XID_Continue'], + ['XIDS', 'XID_Start'] +]); diff --git a/node_modules/unicode-property-aliases-ecmascript/package.json b/node_modules/unicode-property-aliases-ecmascript/package.json new file mode 100644 index 00000000..a95ea151 --- /dev/null +++ b/node_modules/unicode-property-aliases-ecmascript/package.json @@ -0,0 +1,41 @@ +{ + "name": "unicode-property-aliases-ecmascript", + "version": "1.0.4", + "description": "Unicode property alias mappings in JavaScript format for property names that are supported in ECMAScript RegExp property escapes.", + "homepage": "https://github.com/mathiasbynens/unicode-property-aliases-ecmascript", + "main": "index.js", + "engines": { + "node": ">=4" + }, + "files": [ + "LICENSE-MIT.txt", + "index.js" + ], + "keywords": [ + "unicode", + "unicode-data", + "alias", + "aliases", + "property alias" + ], + "license": "MIT", + "author": { + "name": "Mathias Bynens", + "url": "https://mathiasbynens.be/" + }, + "repository": { + "type": "git", + "url": "https://github.com/mathiasbynens/unicode-property-aliases-ecmascript.git" + }, + "bugs": "https://github.com/mathiasbynens/unicode-property-aliases-ecmascript/issues", + "devDependencies": { + "ava": "*", + "jsesc": "^2.5.1", + "unicode-canonical-property-names-ecmascript": "^1.0.4" + }, + "scripts": { + "download": "curl http://unicode.org/Public/11.0.0/ucd/PropertyAliases.txt > data/PropertyAliases.txt", + "build": "node scripts/build.js", + "test": "ava ./tests" + } +} |
