Sha256: a933ffb0419878ea0dbf0b7f066b5c3d9fa86176547394039a8509a3ed994e57

Contents?: true

Size: 1.43 KB

Versions: 30

Compression:

Stored size: 1.43 KB

Contents

# unicode-property-aliases-ecmascript [![Build status](https://travis-ci.org/mathiasbynens/unicode-property-aliases-ecmascript.svg?branch=master)](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](https://github.com/tc39/proposal-regexp-unicode-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](https://www.npmjs.com/):

```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://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") |
|---|
| [Mathias Bynens](https://mathiasbynens.be/) |

## License

_unicode-property-aliases-ecmascript_ is available under the [MIT](https://mths.be/mit) license.

Version data entries

30 entries across 29 versions & 10 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/unicode-property-aliases-ecmascript/README.md
disco_app-0.18.0 test/dummy/node_modules/unicode-property-aliases-ecmascript/README.md
disco_app-0.18.2 test/dummy/node_modules/unicode-property-aliases-ecmascript/README.md
tang-0.2.1 spec/tang_app/node_modules/unicode-property-aliases-ecmascript/README.md
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/unicode-property-aliases-ecmascript/README.md
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/unicode-property-aliases-ecmascript/README.md
ruby2js-4.0.4 lib/tasks/testrails/node_modules/unicode-property-aliases-ecmascript/README.md
ruby2js-4.0.3 lib/tasks/testrails/node_modules/unicode-property-aliases-ecmascript/README.md
tang-0.2.0 spec/tang_app/node_modules/unicode-property-aliases-ecmascript/README.md
tang-0.1.0 spec/tang_app/node_modules/unicode-property-aliases-ecmascript/README.md
tang-0.0.9 spec/tang_app/node_modules/unicode-property-aliases-ecmascript/README.md
enju_library-0.3.8 spec/dummy/node_modules/unicode-property-aliases-ecmascript/README.md
condenser-0.3 lib/condenser/processors/node_modules/unicode-property-aliases-ecmascript/README.md
condenser-0.2 lib/condenser/processors/node_modules/unicode-property-aliases-ecmascript/README.md
condenser-0.1 lib/condenser/processors/node_modules/unicode-property-aliases-ecmascript/README.md
condenser-0.0.12 lib/condenser/processors/node_modules/unicode-property-aliases-ecmascript/README.md
condenser-0.0.11 lib/condenser/processors/node_modules/unicode-property-aliases-ecmascript/README.md
condenser-0.0.10 lib/condenser/processors/node_modules/unicode-property-aliases-ecmascript/README.md
condenser-0.0.9 lib/condenser/processors/node_modules/unicode-property-aliases-ecmascript/README.md
condenser-0.0.8 lib/condenser/processors/node_modules/unicode-property-aliases-ecmascript/README.md