lihai 8d6c751f49 feat: push | 2 years ago | |
---|---|---|
.. | ||
LICENSE-MIT.txt | 2 years ago | |
README.md | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years ago |
unicode-property-aliases-ecmascript offers Unicode property alias mappings in an easy-to-consume JavaScript format. It only contains the Unicode property names that are supported in ECMAScript RegExp property escapes.
It’s based on the PropertyAliases.txt
data for Unicode v12.0.0.
To use unicode-property-aliases-ecmascript programmatically, install it as a dependency via npm:
$ npm install unicode-property-aliases-ecmascript
Then, require
it:
const propertyAliases = require('unicode-property-aliases-ecmascript');
This module exports a Map
object. The most common usage is to convert a property alias to its canonical form:
propertyAliases.get('scx')
// → 'Script_Extensions'
Mathias Bynens |
unicode-property-aliases-ecmascript is available under the MIT license.