unicode-property-aliases offers the Unicode property alias mappings in an easy-to-consume JavaScript format.
It’s based on the PropertyAliases.txt
data for Unicode v9.0.0.
Installation
To use unicode-property-aliases programmatically, install it as a dependency via npm:
$ npm install unicode-property-aliases
Then, require
it:
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:
propertyAliases.get('sfc')
// → 'Simple_Case_Folding'
Author
Mathias Bynens |
License
unicode-property-aliases is available under the MIT license.