{"_id":"unicode-match-property-value","_rev":"10-6f5974dcd9fef82876528004a384626a","name":"unicode-match-property-value","description":"Match a Unicode property or property alias to its canonical property name without loose matching.","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.1":{"name":"unicode-match-property-value","version":"1.0.1","description":"Match a Unicode property or property alias to its canonical property name without loose matching.","homepage":"https://github.com/mathiasbynens/unicode-match-property-value","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.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property-value/issues"},"dependencies":{"unicode-9.0.0":"0.0.1","unicode-property-aliases":"^1.1.0","unicode-property-value-aliases":"^1.2.1"},"devDependencies":{"ava":"*","jsesc":"^2.2.0"},"scripts":{"build":"node scripts/build.js","test":"ava ./tests"},"gitHead":"b3d6869cac53ecc24c1b7e6dbaa42179a3eb3b7b","_id":"unicode-match-property-value@1.0.1","_shasum":"5e5d3a40ee66f36fa981998d2e95680df4648867","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"5e5d3a40ee66f36fa981998d2e95680df4648867","tarball":"https://registry.npmjs.org/unicode-match-property-value/-/unicode-match-property-value-1.0.1.tgz","integrity":"sha512-3HnqO4FHa8+8lZFZaF0Up1C+vSCkE1aKWcsuAkW/cFX9GBwfcnPL89u2Ms+B3SuPErD5HYKublVRwbWXuAMrEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDigEup63/klV3axk2lu7NKszcUDUPZaFqf7QFbqcNWsgIhAMgx7DCTksGli2mprpWt1OEDm3gQ9aj49k0asqVGxlPh"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unicode-match-property-value-1.0.1.tgz_1465422141832_0.09564026328735054"}},"1.0.2":{"name":"unicode-match-property-value","version":"1.0.2","description":"Match a Unicode property or property alias to its canonical property name without loose matching.","homepage":"https://github.com/mathiasbynens/unicode-match-property-value","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.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property-value/issues"},"dependencies":{"unicode-property-value-aliases":"^1.2.1"},"devDependencies":{"ava":"*","jsesc":"^2.2.0","unicode-9.0.0":"^0.7.0","unicode-property-aliases":"^1.1.0"},"scripts":{"build":"node scripts/build.js","test":"ava ./tests"},"gitHead":"752914edc489dace355044403be9098e716ef99d","_id":"unicode-match-property-value@1.0.2","_shasum":"55de300b04112a8cb663c0102343c082737714cc","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"55de300b04112a8cb663c0102343c082737714cc","tarball":"https://registry.npmjs.org/unicode-match-property-value/-/unicode-match-property-value-1.0.2.tgz","integrity":"sha512-1gVylfXDNtKrI4C2bgHsQyx4XjgTfcb4YJ+DGkyFIdYW0RR842UM7GiHaZ5+4NxCuj6SntHfcqZoV11jzTDLNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDt/wHJOXl9VSgZdapkYes/PxO9purJzUoXH9DQKym4MAiAiBKHS+HWAwiPoGv2zgV7BfnQloIZnQqnNmoujcLqNgg=="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/unicode-match-property-value-1.0.2.tgz_1471601003496_0.6238130733836442"}},"2.0.0":{"name":"unicode-match-property-value","version":"2.0.0","description":"Match a Unicode property or property alias to its canonical property name without loose matching.","homepage":"https://github.com/mathiasbynens/unicode-match-property-value","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.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property-value/issues"},"dependencies":{"unicode-property-value-aliases":"^2.0.0"},"devDependencies":{"ava":"*","jsesc":"^2.5.0","unicode-9.0.0":"^0.7.4","unicode-property-aliases-ecmascript":"^1.0.0"},"scripts":{"build":"node scripts/build.js","test":"ava ./tests"},"gitHead":"99db282b848d98d1d9ad9bdacfefe65c8754e993","_id":"unicode-match-property-value@2.0.0","_shasum":"081ed0681d76b1d1301f55ac4c6a27846ea6bb38","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"081ed0681d76b1d1301f55ac4c6a27846ea6bb38","tarball":"https://registry.npmjs.org/unicode-match-property-value/-/unicode-match-property-value-2.0.0.tgz","integrity":"sha512-gzGSnk3adBmP7oFW/HYTMDSXAWok6Nfute5D6OjTuIW7gHdhZMGKKfmA+9AwYjp9DI3Oc2asrVuKdCVc/qqBAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwvLp/k9diiwkMWFKtPyTr8xIeoW1OhnvPH+R9ezTWgwIgS7M2xmNSRxZG+Krn7BZB5E9K7Ppk+q+XXw+HIIza864="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/unicode-match-property-value-2.0.0.tgz_1492248514148_0.07819434069097042"}},"2.0.1":{"name":"unicode-match-property-value","version":"2.0.1","description":"Match a Unicode property or property alias to its canonical property name without loose matching.","homepage":"https://github.com/mathiasbynens/unicode-match-property-value","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.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property-value/issues"},"devDependencies":{"ava":"*","jsesc":"^2.5.0","unicode-property-value-aliases":"^2.0.0"},"scripts":{"build":"node scripts/build.js","test":"ava ./tests"},"gitHead":"f756e422ff237ac50e0e2d555000b121e876ffd6","_id":"unicode-match-property-value@2.0.1","_shasum":"090171041f79379395b837ba000ee89b02fea811","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"090171041f79379395b837ba000ee89b02fea811","tarball":"https://registry.npmjs.org/unicode-match-property-value/-/unicode-match-property-value-2.0.1.tgz","integrity":"sha512-gQ2eZfNdB6X1yb6cNlIuBDpo31zyqLs7SzqZcFBMkRN9SQsfmdUqaP/kjYLHCzQcxeo8lPFel8XpdCRi9rhkLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG3FPGBONjQtYtD70+/TmYOTztO1Hg4SVFaLHTwxwHDdAiBRDmYG1t47uw5HfpqGdt1O6SGifLUVboo8dDD69ehGmg=="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/unicode-match-property-value-2.0.1.tgz_1492252430349_0.0864646676927805"}}},"readme":"# unicode-match-property-value [![Build status](https://travis-ci.org/mathiasbynens/unicode-match-property-value.svg?branch=master)](https://travis-ci.org/mathiasbynens/unicode-match-property-value)\n\n_unicode-match-property-value_ 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_ programmatically, install it as a dependency via [npm](https://www.npmjs.com/):\n\n```bash\n$ npm install unicode-match-property-value\n```\n\nThen, `require` it:\n\n```js\nconst matchPropertyValue = require('unicode-match-property-value');\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## 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_ is available under the [MIT](https://mths.be/mit) license.\n","maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"time":{"modified":"2022-06-28T04:26:46.257Z","created":"2016-06-08T20:02:28.166Z","0.1.0":"2016-06-08T20:02:28.166Z","1.0.0":"2016-06-08T21:39:23.235Z","1.0.1":"2016-06-08T21:42:24.178Z","1.0.2":"2016-08-19T10:03:24.600Z","2.0.0":"2017-04-15T09:28:36.176Z","2.0.1":"2017-04-15T10:33:50.998Z"},"homepage":"https://github.com/mathiasbynens/unicode-match-property-value","keywords":["unicode","unicode property values","unicode property value aliases"],"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/unicode-match-property-value.git"},"author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-match-property-value/issues"},"license":"MIT","readmeFilename":"README.md"}