https://github.com/mathiasbynens/unicode-property-aliases
Unicode property alias mappings in JavaScript format.
https://github.com/mathiasbynens/unicode-property-aliases
Last synced: about 2 months ago
JSON representation
Unicode property alias mappings in JavaScript format.
- Host: GitHub
- URL: https://github.com/mathiasbynens/unicode-property-aliases
- Owner: mathiasbynens
- License: mit
- Created: 2016-05-21T07:26:25.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2024-09-12T08:01:50.000Z (9 months ago)
- Last Synced: 2025-03-28T22:41:26.429Z (2 months ago)
- Language: JavaScript
- Homepage: https://github.com/mathiasbynens/unicode-property-aliases
- Size: 34.2 KB
- Stars: 7
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT.txt
Awesome Lists containing this project
README
# unicode-property-aliases [](https://www.npmjs.com/package/unicode-property-aliases)
_unicode-property-aliases_ offers the Unicode property alias mappings in an easy-to-consume JavaScript format.
## Installation
To use _unicode-property-aliases_ programmatically, install it as a dependency via [npm](https://www.npmjs.com/):
```bash
$ npm install unicode-property-aliases
```Then, `require` it:
```js
const propertyAliases = require('unicode-property-aliases');
```## Usage
This module exports a `Map` object. The most common usage is to convert a property alias to its canonical form:
```js
propertyAliases.get('sfc')
// → 'Simple_Case_Folding'
```## 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
| [](https://twitter.com/mathias "Follow @mathias on Twitter") |
|---|
| [Mathias Bynens](https://mathiasbynens.be/) |## License
_unicode-property-aliases_ is available under the [MIT](https://mths.be/mit) license.