{"_id":"unicode-match-property-value-ecmascript","_rev":"4122366","name":"unicode-match-property-value-ecmascript","description":"Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.","dist-tags":{"latest":"2.2.1"},"maintainers":[{"name":"google-wombot","email":""},{"name":"mathias","email":""}],"time":{"modified":"2026-02-13T22:18:39.000Z","created":"2017-04-15T12:25:14.950Z","2.2.1":"2025-09-09T15:35:26.428Z","2.2.0":"2024-09-12T09:14:54.415Z","2.1.0":"2022-11-14T20:40:31.570Z","2.0.0":"2021-09-14T11:13:56.375Z","1.2.0":"2020-03-11T17:03:28.847Z","1.1.0":"2019-03-05T12:52:14.201Z","1.0.2":"2018-06-07T13:16:09.586Z","1.0.1":"2017-06-20T16:52:17.824Z","1.0.0":"2017-04-15T12:25:14.950Z"},"users":{},"author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/unicode-match-property-value-ecmascript.git"},"versions":{"2.2.1":{"name":"unicode-match-property-value-ecmascript","version":"2.2.1","description":"Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.","homepage":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript","main":"index.js","engines":{"node":">=4"},"keywords":["unicode","unicode property values","unicode property value aliases"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/unicode-match-property-value-ecmascript.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript/issues"},"devDependencies":{"ava":"*","jsesc":"^3.1.0","unicode-property-value-aliases-ecmascript":"^2.2.1"},"scripts":{"build":"node scripts/build.js","test":"ava tests/tests.js"},"_id":"unicode-match-property-value-ecmascript@2.2.1","gitHead":"48cc09496d4398f9b113c87bfb63f4750f6e47ea","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"shasum":"65a7adfad8574c219890e219285ce4c64ed67eaa","size":5597,"noattachment":false,"key":"/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-match-property-value-ecmascript/download/unicode-match-property-value-ecmascript-2.2.1.tgz"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"directories":{},"maintainers":[{"name":"google-wombot","email":""},{"name":"mathias","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/unicode-match-property-value-ecmascript_2.2.1_1757432126256_0.6915945685132079"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-09T15:35:26.428Z","publish_time":1757432126428,"_source_registry_name":"default","_cnpm_publish_time":1757432126428},"2.2.0":{"name":"unicode-match-property-value-ecmascript","version":"2.2.0","description":"Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.","homepage":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript","main":"index.js","engines":{"node":">=4"},"keywords":["unicode","unicode property values","unicode property value aliases"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/unicode-match-property-value-ecmascript.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript/issues"},"devDependencies":{"ava":"*","jsesc":"^3.0.2","unicode-property-value-aliases-ecmascript":"^2.2.0"},"scripts":{"build":"node scripts/build.js","test":"ava tests/tests.js"},"_id":"unicode-match-property-value-ecmascript@2.2.0","gitHead":"96f5e6e90b42029888ba43c77aa6baaf5da6ca0f","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"shasum":"a0401aee72714598f739b68b104e4fe3a0cb3c71","size":5537,"noattachment":false,"key":"/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-match-property-value-ecmascript/download/unicode-match-property-value-ecmascript-2.2.0.tgz"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"directories":{},"maintainers":[{"name":"google-wombot","email":""},{"name":"mathias","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-match-property-value-ecmascript_2.2.0_1726132494239_0.7713104673141253"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-12T09:14:54.415Z","publish_time":1726132494415,"_source_registry_name":"default","_cnpm_publish_time":1726132494415},"2.1.0":{"name":"unicode-match-property-value-ecmascript","version":"2.1.0","description":"Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.","homepage":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript","main":"index.js","engines":{"node":">=4"},"keywords":["unicode","unicode property values","unicode property value aliases"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/unicode-match-property-value-ecmascript.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript/issues"},"devDependencies":{"ava":"*","jsesc":"^3.0.2","unicode-property-value-aliases-ecmascript":"^2.1.0"},"scripts":{"build":"node scripts/build.js","test":"ava tests/tests.js"},"gitHead":"1cbc7cd306402150aa37e87c92bef98fe1d54455","_id":"unicode-match-property-value-ecmascript@2.1.0","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"shasum":"cb5fffdcd16a05124f5a4b0bf7c3770208acbbe0","size":5447,"noattachment":false,"key":"/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-match-property-value-ecmascript/download/unicode-match-property-value-ecmascript-2.1.0.tgz"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"directories":{},"maintainers":[{"name":"google-wombot","email":""},{"name":"mathias","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-match-property-value-ecmascript_2.1.0_1668458431390_0.49777913139322716"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-14T20:40:35.683Z","publish_time":1668458431570,"_cnpm_publish_time":1668458431570},"2.0.0":{"name":"unicode-match-property-value-ecmascript","version":"2.0.0","description":"Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.","homepage":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript","main":"index.js","engines":{"node":">=4"},"keywords":["unicode","unicode property values","unicode property value aliases"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/unicode-match-property-value-ecmascript.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript/issues"},"devDependencies":{"ava":"*","jsesc":"^3.0.2","unicode-property-value-aliases-ecmascript":"^2.0.0"},"scripts":{"build":"node scripts/build.js","test":"ava tests/tests.js"},"gitHead":"2e4c4318335b78131a0d7e9f802473656364c312","_id":"unicode-match-property-value-ecmascript@2.0.0","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"shasum":"1a01aa57247c14c568b89775a54938788189a714","size":5544,"noattachment":false,"key":"/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-match-property-value-ecmascript/download/unicode-match-property-value-ecmascript-2.0.0.tgz"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"directories":{},"maintainers":[{"name":"google-wombot","email":""},{"name":"mathias","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-match-property-value-ecmascript_2.0.0_1631618036221_0.49413261998120217"},"_hasShrinkwrap":false,"publish_time":1631618036375,"_cnpm_publish_time":1631618036375},"1.2.0":{"name":"unicode-match-property-value-ecmascript","version":"1.2.0","description":"Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.","homepage":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript","main":"index.js","engines":{"node":">=4"},"keywords":["unicode","unicode property values","unicode property value aliases"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/unicode-match-property-value-ecmascript.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript/issues"},"devDependencies":{"ava":"*","jsesc":"^2.5.2","unicode-property-value-aliases-ecmascript":"^1.1.0"},"scripts":{"build":"node scripts/build.js","test":"ava tests/tests.js"},"gitHead":"5e70c94a6bc4309ae7d8b4a3ab102802966abf2f","_id":"unicode-match-property-value-ecmascript@1.2.0","_nodeVersion":"12.6.0","_npmVersion":"6.13.6","dist":{"shasum":"0d91f600eeeb3096aa962b1d6fc88876e64ea531","size":5217,"noattachment":false,"key":"/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-match-property-value-ecmascript/download/unicode-match-property-value-ecmascript-1.2.0.tgz"},"maintainers":[{"name":"google-wombot","email":""},{"name":"mathias","email":""}],"_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-match-property-value-ecmascript_1.2.0_1583946208724_0.8786277779904508"},"_hasShrinkwrap":false,"publish_time":1583946208847,"_cnpm_publish_time":1583946208847},"1.1.0":{"name":"unicode-match-property-value-ecmascript","version":"1.1.0","description":"Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.","homepage":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript","main":"index.js","engines":{"node":">=4"},"keywords":["unicode","unicode property values","unicode property value aliases"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/unicode-match-property-value-ecmascript.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript/issues"},"devDependencies":{"ava":"*","jsesc":"^2.5.2","unicode-property-value-aliases-ecmascript":"^1.0.4"},"scripts":{"build":"node scripts/build.js","test":"ava ./tests"},"gitHead":"92f147349fdedb3e734bb155af18df4511b7874e","_id":"unicode-match-property-value-ecmascript@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.14.1","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"dist":{"shasum":"5b4b426e08d13a80365e0d657ac7a6c1ec46a277","size":5129,"noattachment":false,"key":"/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-match-property-value-ecmascript/download/unicode-match-property-value-ecmascript-1.1.0.tgz"},"maintainers":[{"name":"google-wombot","email":""},{"name":"mathias","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-match-property-value-ecmascript_1.1.0_1551790334081_0.29775175446317537"},"_hasShrinkwrap":false,"publish_time":1551790334201,"_cnpm_publish_time":1551790334201},"1.0.2":{"name":"unicode-match-property-value-ecmascript","version":"1.0.2","description":"Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.","homepage":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript","main":"index.js","engines":{"node":">=4"},"files":["LICENSE-MIT.txt","data/mappings.js","index.js"],"keywords":["unicode","unicode property values","unicode property value aliases"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/unicode-match-property-value-ecmascript.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript/issues"},"devDependencies":{"ava":"*","jsesc":"^2.5.1","unicode-property-value-aliases-ecmascript":"^1.0.3"},"scripts":{"build":"node scripts/build.js","test":"ava ./tests"},"gitHead":"922cdacd4323b3fd094fd78a61df24bd2e35cccb","_id":"unicode-match-property-value-ecmascript@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"dist":{"shasum":"9f1dc76926d6ccf452310564fd834ace059663d4","size":5055,"noattachment":false,"key":"/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-match-property-value-ecmascript/download/unicode-match-property-value-ecmascript-1.0.2.tgz"},"maintainers":[{"name":"google-wombot","email":""},{"name":"mathias","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-match-property-value-ecmascript_1.0.2_1528377369446_0.6768119147776785"},"_hasShrinkwrap":false,"publish_time":1528377369586,"_cnpm_publish_time":1528377369586},"1.0.1":{"name":"unicode-match-property-value-ecmascript","version":"1.0.1","description":"Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.","homepage":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript","main":"index.js","engines":{"node":">=4"},"files":["LICENSE-MIT.txt","data/mappings.js","index.js"],"keywords":["unicode","unicode property values","unicode property value aliases"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/unicode-match-property-value-ecmascript.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript/issues"},"devDependencies":{"ava":"*","jsesc":"^2.5.1","unicode-property-value-aliases-ecmascript":"^1.0.1"},"scripts":{"build":"node scripts/build.js","test":"ava ./tests"},"gitHead":"6ef617714461832ed2ec03f0b9c1ca7bdd6ec44e","_id":"unicode-match-property-value-ecmascript@1.0.1","_npmVersion":"5.0.3","_nodeVersion":"8.0.0","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"google-wombot","email":""},{"name":"mathias","email":""}],"dist":{"shasum":"fea059120a016f403afd3bf586162b4db03e0604","size":4961,"noattachment":false,"key":"/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-match-property-value-ecmascript/download/unicode-match-property-value-ecmascript-1.0.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-match-property-value-ecmascript-1.0.1.tgz_1497977536903_0.1487307318020612"},"directories":{},"publish_time":1497977537824,"_cnpm_publish_time":1497977537824,"_hasShrinkwrap":false},"1.0.0":{"name":"unicode-match-property-value-ecmascript","version":"1.0.0","description":"Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.","homepage":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript","main":"index.js","engines":{"node":">=4"},"files":["LICENSE-MIT.txt","data/mappings.js","index.js"],"keywords":["unicode","unicode property values","unicode property value aliases"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/unicode-match-property-value-ecmascript.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript/issues"},"devDependencies":{"ava":"*","jsesc":"^2.5.0","unicode-property-value-aliases-ecmascript":"^1.0.0"},"scripts":{"build":"node scripts/build.js","test":"ava ./tests"},"gitHead":"e171b85426dfc54b81348b04150e0cee05473005","_id":"unicode-match-property-value-ecmascript@1.0.0","_shasum":"393fa3e8baf4de2c415b95a8d7338587e3e563be","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"google-wombot","email":""},{"name":"mathias","email":""}],"dist":{"shasum":"393fa3e8baf4de2c415b95a8d7338587e3e563be","size":4876,"noattachment":false,"key":"/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unicode-match-property-value-ecmascript/download/unicode-match-property-value-ecmascript-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unicode-match-property-value-ecmascript-1.0.0.tgz_1492259112932_0.024113732390105724"},"directories":{},"publish_time":1492259114950,"_hasShrinkwrap":false,"_cnpm_publish_time":1492259114950}},"readme":"# unicode-match-property-value-ecmascript [![unicode-match-property-value-ecmascript on npm](https://img.shields.io/npm/v/unicode-match-property-value-ecmascript)](https://www.npmjs.com/package/unicode-match-property-value-ecmascript)\n\n_unicode-match-property-value-ecmascript_ matches a given Unicode property value or [property value alias](https://github.com/mathiasbynens/unicode-property-value-aliases) to its canonical property value without applying [loose matching](https://github.com/mathiasbynens/unicode-loose-match), per the algorithm used for [RegExp Unicode property escapes in ECMAScript](https://github.com/tc39/proposal-regexp-unicode-property-escapes). Consider it a strict alternative to loose matching.\n\n## Installation\n\nTo use _unicode-match-property-value-ecmascript_ programmatically, install it as a dependency via [npm](https://www.npmjs.com/):\n\n```bash\n$ npm install unicode-match-property-value-ecmascript\n```\n\nThen, `require` it:\n\n```js\nconst matchPropertyValue = require('unicode-match-property-value-ecmascript');\n```\n\n## API\n\nThis module exports a single function named `matchPropertyValue`.\n\n### `matchPropertyValue(property, value)`\n\nThis function takes a string `property` that is a canonical/unaliased Unicode property name, and a string `value`. It attemps to  match `value` to a canonical Unicode property value for the given property. If there’s a match, it returns the canonical property value. Otherwise, it throws an exception.\n\n```js\n// Find the canonical property value:\nmatchPropertyValue('Script_Extensions', 'Aghb')\n// → 'Caucasian_Albanian'\n\nmatchPropertyValue('Script_Extensions', 'Caucasian_Albanian')\n// → 'Caucasian_Albanian'\n\nmatchPropertyValue('script_extensions', 'Caucasian_Albanian') // Note: incorrect casing.\n// → throws\n\nmatchPropertyValue('Script_Extensions', 'caucasian_albanian') // Note: incorrect casing.\n// → throws\n```\n\n## For maintainers\n\n### How to publish a new release\n\n1. On the `main` branch, bump the version number in `package.json`:\n\n    ```sh\n    npm version patch -m 'Release v%s'\n    ```\n\n    Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/).\n\n    Note that this produces a Git commit + tag.\n\n1. Push the release commit and tag:\n\n    ```sh\n    git push && git push --tags\n    ```\n\n    Our CI then automatically publishes the new release to npm.\n\n## Author\n\n| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias \"Follow @mathias on Twitter\") |\n|---|\n| [Mathias Bynens](https://mathiasbynens.be/) |\n\n## License\n\n_unicode-match-property-value-ecmascript_ is available under the [MIT](https://mths.be/mit) license.\n","_attachments":{},"homepage":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript","bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property-value-ecmascript/issues"},"license":"MIT"}