{"name":"unicode-property-value-aliases","version":"3.6.0","description":"Unicode property value alias mappings in JavaScript format.","homepage":"https://github.com/mathiasbynens/unicode-property-value-aliases","main":"index.js","engines":{"node":">=4"},"keywords":["unicode","unicode-data","alias","aliases","property alias"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/unicode-property-value-aliases.git"},"bugs":{"url":"https://github.com/mathiasbynens/unicode-property-value-aliases/issues"},"devDependencies":{"ava":"*","jsesc":"^2.5.2","unicode-property-aliases":"^1.5.0"},"scripts":{"download":"curl https://unicode.org/Public/14.0.0/ucd/PropertyValueAliases-14.0.0d13.txt > data/PropertyValueAliases.txt","build":"node scripts/build.js","test":"ava tests/tests.js"},"gitHead":"35a0d3274006826f1412ebaaa77d1e341f2f9a59","_id":"unicode-property-value-aliases@3.6.0","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-XB9zwpOFBG3bfjn24G8s9RQAaJ5WTUguQmTMxQAfBEybQeVFOF/Im+FOjbmD7kPnlucj9P3S36DiAOJtEyJOzg==","shasum":"30b61acf1949e3e84c441ee21044f6da5c72b89d","tarball":"http://registry-npm.ywwl.com/unicode-property-value-aliases/download/unicode-property-value-aliases-3.6.0.tgz","fileCount":4,"unpackedSize":49439,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAqqsCRA9TVsSAnZWagAAViYP/0Ze3IF0hUymGLkoXqsu\nDwNR0rN65JFJ0vSw07T36Tpp2cUnFvVUms/i+RDS/oGAR9zrlaOZTunJqAYQ\n4In7XzxBjXnyUuGOU2D3v3xukHicBEBVwxjVsOiEz6g3sgzrjSZisfVNbLtj\nLlzO+DK6TxQOUJM2CI/QeRD5bL9f6ClwmjnlM3YMQ6dZ2RdAEXdUaZNSjs6v\nVhR/vqd/6nSTDmeJ2RtKcqyGvcXqhOaUR+gwy/UiOlPRagqTjBAV9Fau/K+z\nX68xlao08Sl+IN2QuJ+1VO8mi9VM+sBpImaJIHBUcrxZe96lj5w8dKO7sl2U\nLCJXrP31NhIybvseBf6uqd2/E3vnOmf/uw2PScnxNNuoKNh/xMtqdyGj+b8j\nvTG74cCzLD4h0IUJqsBJnStYN2Km0ILkZT5sBuC7cPBZkGYdgE/BFPTnJYnM\no8p2Sm6X8e+uNrUATHdbDYV8AJXjXpCMfnOn+/PYpsc6I3GldgdQ6opA+WwV\nCHAwXMUwIwXVz6skR7355o/uk8QA8gfh2wz8Jf0VxyFJYWMitgQ0qyY/qRha\nAxO7jhFR7OUa7BfimOnRXHju4TZybkqtTbly1or5JycCMEVRF2uJxXYdXgA9\nO53qGpeG9CEI178qNgt6FC7PdnTgO+K4vi9scYlrsxORzb1rVW0oax9qo02c\nEwDO\r\n=N00F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaV1fJ/NR+SIgUA11FjJPHX6tn7h8J303+f4tM7RDe1wIgVnYLpFpTXrDaX1a//OhMw+zG3gEa2i3H5OYjgjFO6Xc="}],"size":10834,"noattachment":false,"key":"/unicode-property-value-aliases/-/unicode-property-value-aliases-3.6.0.tgz"},"_npmUser":{"name":"google-wombot","email":"node-team-npm+wombot@google.com"},"directories":{},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"},{"name":"google-wombot","email":"node-team-npm+wombot@google.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicode-property-value-aliases_3.6.0_1627564716304_0.5239298487285751"},"_hasShrinkwrap":false,"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, `require` it:\n\n```js\nconst propertyValueAliases = require('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":1627564716437,"_cnpm_publish_time":1627564716437,"dist-tags":{"latest":"4.0.0"}}