pax_global_header00006660000000000000000000000064131731435560014522gustar00rootroot0000000000000052 comment=4395da9cfe6f108170aa7610643f4c56f1c053ef unicode-canonical-property-names-ecmascript-1.0.3/000077500000000000000000000000001317314355600222115ustar00rootroot00000000000000unicode-canonical-property-names-ecmascript-1.0.3/.editorconfig000066400000000000000000000003161317314355600246660ustar00rootroot00000000000000root = true [*] charset = utf-8 indent_style = tab end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true [{README.md,package.json,.travis.yml}] indent_style = space indent_size = 2 unicode-canonical-property-names-ecmascript-1.0.3/.gitattributes000066400000000000000000000000141317314355600250770ustar00rootroot00000000000000* text=auto unicode-canonical-property-names-ecmascript-1.0.3/.gitignore000066400000000000000000000003351317314355600242020ustar00rootroot00000000000000# Installed npm modules package-lock.json node_modules # Folder view configuration files .DS_Store Desktop.ini # Thumbnail cache files ._* Thumbs.db # Files that might appear on external disks .Spotlight-V100 .Trashes unicode-canonical-property-names-ecmascript-1.0.3/.travis.yml000066400000000000000000000001421317314355600243170ustar00rootroot00000000000000language: node_js node_js: - '4' - '5' - '6' - '7' script: - 'npm test' git: depth: 1 unicode-canonical-property-names-ecmascript-1.0.3/LICENSE-MIT.txt000066400000000000000000000020651317314355600244660ustar00rootroot00000000000000Copyright Mathias Bynens 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. unicode-canonical-property-names-ecmascript-1.0.3/README.md000066400000000000000000000022761317314355600234770ustar00rootroot00000000000000# unicode-canonical-property-names-ecmascript [![Build status](https://travis-ci.org/mathiasbynens/unicode-canonical-property-names-ecmascript.svg?branch=master)](https://travis-ci.org/mathiasbynens/unicode-canonical-property-names-ecmascript) _unicode-canonical-property-names-ecmascript_ exports the set of canonical Unicode property names that are supported in [ECMAScript RegExp property escapes](https://github.com/tc39/proposal-regexp-unicode-property-escapes). ## Installation To use _unicode-canonical-property-names-ecmascript_, install it as a dependency via [npm](https://www.npmjs.com/): ```bash $ npm install unicode-canonical-property-names-ecmascript ``` Then, `require` it: ```js const properties = require('unicode-canonical-property-names-ecmascript'); ``` ## Example ```js properties.has('ID_Start'); // → true properties.has('IDS'); // → false ``` ## Author | [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | |---| | [Mathias Bynens](https://mathiasbynens.be/) | ## License _unicode-canonical-property-names-ecmascript_ is available under the [MIT](https://mths.be/mit) license. unicode-canonical-property-names-ecmascript-1.0.3/index.js000077500000000000000000000021451317314355600236630ustar00rootroot00000000000000module.exports = new Set([ // Non-binary properties: 'General_Category', 'Script', 'Script_Extensions', // Binary properties: 'Alphabetic', 'Any', 'ASCII', 'ASCII_Hex_Digit', 'Assigned', 'Bidi_Control', 'Bidi_Mirrored', 'Case_Ignorable', 'Cased', 'Changes_When_Casefolded', 'Changes_When_Casemapped', 'Changes_When_Lowercased', 'Changes_When_NFKC_Casefolded', 'Changes_When_Titlecased', 'Changes_When_Uppercased', 'Dash', 'Default_Ignorable_Code_Point', 'Deprecated', 'Diacritic', 'Emoji', 'Emoji_Component', 'Emoji_Modifier', 'Emoji_Modifier_Base', 'Emoji_Presentation', 'Extender', 'Grapheme_Base', 'Grapheme_Extend', 'Hex_Digit', 'ID_Continue', 'ID_Start', 'Ideographic', 'IDS_Binary_Operator', 'IDS_Trinary_Operator', 'Join_Control', 'Logical_Order_Exception', 'Lowercase', 'Math', 'Noncharacter_Code_Point', 'Pattern_Syntax', 'Pattern_White_Space', 'Quotation_Mark', 'Radical', 'Regional_Indicator', 'Sentence_Terminal', 'Soft_Dotted', 'Terminal_Punctuation', 'Unified_Ideograph', 'Uppercase', 'Variation_Selector', 'White_Space', 'XID_Continue', 'XID_Start' ]); unicode-canonical-property-names-ecmascript-1.0.3/package.json000066400000000000000000000016001317314355600244740ustar00rootroot00000000000000{ "name": "unicode-canonical-property-names-ecmascript", "version": "1.0.3", "description": "The set of canonical Unicode property names supported in ECMAScript RegExp property escapes.", "homepage": "https://github.com/mathiasbynens/unicode-canonical-property-names-ecmascript", "main": "index.js", "engines": { "node": ">=4" }, "files": [ "LICENSE-MIT.txt", "index.js" ], "keywords": [ "unicode", "unicode properties" ], "license": "MIT", "author": { "name": "Mathias Bynens", "url": "https://mathiasbynens.be/" }, "repository": { "type": "git", "url": "https://github.com/mathiasbynens/unicode-canonical-property-names-ecmascript.git" }, "bugs": "https://github.com/mathiasbynens/unicode-canonical-property-names-ecmascript/issues", "devDependencies": { "ava": "*" }, "scripts": { "test": "ava ./tests" } } unicode-canonical-property-names-ecmascript-1.0.3/tests/000077500000000000000000000000001317314355600233535ustar00rootroot00000000000000unicode-canonical-property-names-ecmascript-1.0.3/tests/tests.js000066400000000000000000000017321317314355600250560ustar00rootroot00000000000000import test from 'ava'; import canonicalProperties from '../index.js'; test(t => { // Test non-binary properties. t.true(canonicalProperties.has('General_Category')); t.false(canonicalProperties.has('gc')); t.true(canonicalProperties.has('Script')); t.false(canonicalProperties.has('sc')); t.true(canonicalProperties.has('Script_Extensions')); t.false(canonicalProperties.has('scx')); // Test binary properties. t.true(canonicalProperties.has('ASCII')); t.false(canonicalProperties.has('ascii')); t.true(canonicalProperties.has('Any')); t.false(canonicalProperties.has('any')); t.true(canonicalProperties.has('Assigned')); t.false(canonicalProperties.has('assigned')); t.true(canonicalProperties.has('ID_Start')); t.false(canonicalProperties.has('IDS')); t.true(canonicalProperties.has('Emoji_Modifier')); t.false(canonicalProperties.has('emojimodifier')); t.true(canonicalProperties.has('Emoji_Component')); t.false(canonicalProperties.has('emojicomponent')); });