summaryrefslogtreecommitdiff
path: root/node_modules/unicode-canonical-property-names-ecmascript
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/unicode-canonical-property-names-ecmascript')
-rw-r--r--node_modules/unicode-canonical-property-names-ecmascript/LICENSE-MIT.txt20
-rw-r--r--node_modules/unicode-canonical-property-names-ecmascript/README.md58
-rwxr-xr-xnode_modules/unicode-canonical-property-names-ecmascript/index.js60
-rw-r--r--node_modules/unicode-canonical-property-names-ecmascript/package.json34
4 files changed, 172 insertions, 0 deletions
diff --git a/node_modules/unicode-canonical-property-names-ecmascript/LICENSE-MIT.txt b/node_modules/unicode-canonical-property-names-ecmascript/LICENSE-MIT.txt
new file mode 100644
index 00000000..a41e0a7e
--- /dev/null
+++ b/node_modules/unicode-canonical-property-names-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-canonical-property-names-ecmascript/README.md b/node_modules/unicode-canonical-property-names-ecmascript/README.md
new file mode 100644
index 00000000..3e86abcf
--- /dev/null
+++ b/node_modules/unicode-canonical-property-names-ecmascript/README.md
@@ -0,0 +1,58 @@
+# unicode-canonical-property-names-ecmascript [![Build status](https://travis-ci.org/mathiasbynens/unicode-canonical-property-names-ecmascript.svg?branch=main)](https://travis-ci.org/mathiasbynens/unicode-canonical-property-names-ecmascript) [![unicode-canonical-property-names-ecmascript on npm](https://img.shields.io/npm/v/unicode-canonical-property-names-ecmascript)](https://www.npmjs.com/package/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
+```
+
+## For maintainers
+
+### How to publish a new release
+
+1. On the `main` branch, bump the version number in `package.json`:
+
+ ```sh
+ npm version patch -m 'Release v%s'
+ ```
+
+ Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/).
+
+ Note that this produces a Git commit + tag.
+
+1. Push the release commit and tag:
+
+ ```sh
+ git push && git push --tags
+ ```
+
+ Our CI then automatically publishes the new release to npm.
+
+## 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.
diff --git a/node_modules/unicode-canonical-property-names-ecmascript/index.js b/node_modules/unicode-canonical-property-names-ecmascript/index.js
new file mode 100755
index 00000000..e54193d2
--- /dev/null
+++ b/node_modules/unicode-canonical-property-names-ecmascript/index.js
@@ -0,0 +1,60 @@
+module.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',
+ 'Extended_Pictographic',
+ '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'
+]);
diff --git a/node_modules/unicode-canonical-property-names-ecmascript/package.json b/node_modules/unicode-canonical-property-names-ecmascript/package.json
new file mode 100644
index 00000000..dc072e2d
--- /dev/null
+++ b/node_modules/unicode-canonical-property-names-ecmascript/package.json
@@ -0,0 +1,34 @@
+{
+ "name": "unicode-canonical-property-names-ecmascript",
+ "version": "2.0.0",
+ "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/tests.js"
+ }
+}