rOACCT/node_modules/unicode-property-aliases-ecmascriptf6e94234d26ddjango3.2
rOACCT/node_modules/unicode-property-aliases-ecmascript
f6e94234d26ddjango3.2
unicode-property-aliases-ecmascript
unicode-property-aliases-ecmascript
README.md
README.md
unicode-property-aliases-ecmascript ![Build status](https://travis-ci.org/mathiasbynens/unicode-property-aliases-ecmascript)
_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](http://unicode.org/Public/12.0.0/ucd/PropertyAliases.txt).
Installation
To use _unicode-property-aliases-ecmascript_ programmatically, install it as a dependency via npm:
bash $ npm install unicode-property-aliases-ecmascript
Then, require it:
js const propertyAliases = require('unicode-property-aliases-ecmascript');
Usage
This module exports a Map object. The most common usage is to convert a property alias to its canonical form:
js propertyAliases.get('scx') // → 'Script_Extensions'
Author
![twitter/mathias](https://twitter.com/mathias "Follow @mathias on Twitter") |
---|
Mathias Bynens |
License
_unicode-property-aliases-ecmascript_ is available under the MIT license.
c4science · Help