Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.8 KB
|
Line | |
---|
1 | # unicode-canonical-property-names-ecmascript [![Build status](https://travis-ci.org/mathiasbynens/unicode-canonical-property-names-ecmascript.svg?branch=main)](https://travis-ci.org/mathiasbynens/unicode-canonical-property-names-ecmascript) [![unicode-canonical-property-names-ecmascript on npm](https://img.shields.io/npm/v/unicode-canonical-property-names-ecmascript)](https://www.npmjs.com/package/unicode-canonical-property-names-ecmascript)
|
---|
2 |
|
---|
3 | _unicode-canonical-property-names-ecmascript_ exports the set of canonical Unicode property names that are supported in [ECMAScript RegExp property escapes](https://github.com/tc39/proposal-regexp-unicode-property-escapes).
|
---|
4 |
|
---|
5 | ## Installation
|
---|
6 |
|
---|
7 | To use _unicode-canonical-property-names-ecmascript_, install it as a dependency via [npm](https://www.npmjs.com/):
|
---|
8 |
|
---|
9 | ```bash
|
---|
10 | $ npm install unicode-canonical-property-names-ecmascript
|
---|
11 | ```
|
---|
12 |
|
---|
13 | Then, `require` it:
|
---|
14 |
|
---|
15 | ```js
|
---|
16 | const properties = require('unicode-canonical-property-names-ecmascript');
|
---|
17 | ```
|
---|
18 |
|
---|
19 | ## Example
|
---|
20 |
|
---|
21 | ```js
|
---|
22 | properties.has('ID_Start');
|
---|
23 | // → true
|
---|
24 | properties.has('IDS');
|
---|
25 | // → false
|
---|
26 | ```
|
---|
27 |
|
---|
28 | ## For maintainers
|
---|
29 |
|
---|
30 | ### How to publish a new release
|
---|
31 |
|
---|
32 | 1. On the `main` branch, bump the version number in `package.json`:
|
---|
33 |
|
---|
34 | ```sh
|
---|
35 | npm version patch -m 'Release v%s'
|
---|
36 | ```
|
---|
37 |
|
---|
38 | Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/).
|
---|
39 |
|
---|
40 | Note that this produces a Git commit + tag.
|
---|
41 |
|
---|
42 | 1. Push the release commit and tag:
|
---|
43 |
|
---|
44 | ```sh
|
---|
45 | git push && git push --tags
|
---|
46 | ```
|
---|
47 |
|
---|
48 | Our CI then automatically publishes the new release to npm.
|
---|
49 |
|
---|
50 | ## Author
|
---|
51 |
|
---|
52 | | [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") |
|
---|
53 | |---|
|
---|
54 | | [Mathias Bynens](https://mathiasbynens.be/) |
|
---|
55 |
|
---|
56 | ## License
|
---|
57 |
|
---|
58 | _unicode-canonical-property-names-ecmascript_ is available under the [MIT](https://mths.be/mit) license.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.