{"name":"unicode-property-value-aliases","version":"3.9.0","keywords":["unicode","unicode-data","alias","aliases","property alias"],"author":{"url":"https://mathiasbynens.be/","name":"Mathias Bynens"},"license":"MIT","_id":"unicode-property-value-aliases@3.9.0","maintainers":[{"name":"mathias","email":"mathias@qiwi.be"},{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"homepage":"https://github.com/mathiasbynens/unicode-property-value-aliases","bugs":{"url":"https://github.com/mathiasbynens/unicode-property-value-aliases/issues"},"dist":{"shasum":"6ef9f9776a228b7581d4a016c78dfd45abd18861","tarball":"http://registry-npm.ywwl.com/unicode-property-value-aliases/download/unicode-property-value-aliases-3.9.0.tgz","fileCount":4,"integrity":"sha512-UFsQgFziRAXuFS9hN48PnwujNFwsuRWHj+bd840X7aYC1xa0MHlKsaxzapp5lM4C4HuAPko5cFiTUydeQ428Bg==","signatures":[{"sig":"MEQCH0VEepr+MsG+YTVI9oeCFPjmLctZeAY51qKBagf1CFoCIQDbfA0e70CSfOuBRgpnX/7dB4koASmZiNHCZ7DVuFIj7w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":52467,"size":11144,"noattachment":false,"key":"/unicode-property-value-aliases/-/unicode-property-value-aliases-3.9.0.tgz"},"main":"index.js","engines":{"node":">=4"},"gitHead":"48a191c22d8f59e612a586dd798d6e0e91dbf2f1","scripts":{"test":"ava tests/tests.js","build":"node scripts/build.js","download":"curl --location https://unicode.org/Public/17.0.0/ucd/PropertyValueAliases.txt > data/PropertyValueAliases.txt"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"repository":{"url":"git+https://github.com/mathiasbynens/unicode-property-value-aliases.git","type":"git"},"_npmVersion":"10.8.2","description":"Unicode property value alias mappings in JavaScript format.","directories":{},"_nodeVersion":"20.19.4","_hasShrinkwrap":false,"devDependencies":{"ava":"*","jsesc":"^3.0.2","unicode-property-aliases":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/unicode-property-value-aliases_3.9.0_1756369603850_0.7763048868367786","host":"s3://npm-registry-packages-npm-production"},"readme":"# unicode-property-value-aliases [![unicode-property-value-aliases on npm](https://img.shields.io/npm/v/unicode-property-value-aliases)](https://www.npmjs.com/package/unicode-property-value-aliases)\n\n_unicode-property-value-aliases_ offers the Unicode property value alias mappings in an easy-to-consume JavaScript format.\n\nIt’s based on Unicode’s `PropertyValueAliases.txt`.\n\nFor the subset used by Unicode RegExp property escapes in ECMAScript, [see _unicode-property-value-aliases-ecmascript_](https://github.com/mathiasbynens/unicode-property-value-aliases-ecmascript).\n\n## Installation\n\nTo use _unicode-property-value-aliases_ programmatically, install it as a dependency via [npm](https://www.npmjs.com/):\n\n```bash\n$ npm install unicode-property-value-aliases\n```\n\nThen, `import` it:\n\n```js\nimport propertyValueAliases from 'unicode-property-value-aliases';\n```\n\n## Usage\n\nThis module exports a `Map` object of which the keys are canonical property names and the values are `Map`s from property value aliases to canonical property value names. The most common usage is to convert a property value alias to its canonical form:\n\n```js\npropertyValueAliases.get(property).get(propertyValue)\n```\n\nExamples:\n\n```js\npropertyValueAliases.get('Bidi_Class').get('AL')\n// → 'Arabic_Letter'\n\npropertyValueAliases.get('Block').get('Alphabetic_PF')\n// → 'Alphabetic_Presentation_Forms'\n\npropertyValueAliases.get('Canonical_Combining_Class').get('KV')\n// → 'Kana_Voicing'\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-property-value-aliases_ is available under the [MIT](https://mths.be/mit) license.\n","publish_time":1756369604053,"_cnpm_publish_time":1756369604053,"dist-tags":{"latest":"4.0.0"}}