shift73k/assets_old/node_modules/unicode-property-aliases-ecmascript
2022-08-13 07:32:36 -04:00
..
index.js progress on migrating to heex templates and font-icons 2022-08-13 07:32:36 -04:00
LICENSE-MIT.txt progress on migrating to heex templates and font-icons 2022-08-13 07:32:36 -04:00
package.json progress on migrating to heex templates and font-icons 2022-08-13 07:32:36 -04:00
README.md progress on migrating to heex templates and font-icons 2022-08-13 07:32:36 -04:00

unicode-property-aliases-ecmascript Build status

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.

Its based on the PropertyAliases.txt data for Unicode v12.0.0.

Installation

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');

Usage

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'

Author

twitter/mathias
Mathias Bynens

License

unicode-property-aliases-ecmascript is available under the MIT license.