Skip to content
Unicode property alias mappings in JavaScript format for property names that are supported in ECMAScript RegExp property escapes.
JavaScript
Branch: master
Clone or download
Latest commit 88a90d6 Mar 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data Update per Unicode v12 Mar 5, 2019
scripts Update dependencies Apr 15, 2017
tests Update tests Mar 5, 2019
.editorconfig Initial commit Apr 15, 2017
.gitattributes Initial commit Apr 15, 2017
.gitignore Update to Unicode v11 Jun 7, 2018
.travis.yml Initial commit Apr 15, 2017
LICENSE-MIT.txt Initial commit Apr 15, 2017
README.md Update per Unicode v12 Mar 5, 2019
index.js Update to Unicode 10 Jun 20, 2017
package.json Release v1.0.5 Mar 5, 2019

README.md

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.

It’s 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.

You can’t perform that action at this time.