source: frontend/node_modules/is-potential-custom-element-name/README.md

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.3 KB
Line 
1# is-potential-custom-element-name [![Build status](https://travis-ci.org/mathiasbynens/is-potential-custom-element-name.svg?branch=master)](https://travis-ci.org/mathiasbynens/is-potential-custom-element-name)
2
3_is-potential-custom-element-name_ checks whether a given string matches [the `PotentialCustomElementName` production](https://html.spec.whatwg.org/multipage/scripting.html#prod-potentialcustomelementname) as defined in the HTML Standard.
4
5## Installation
6
7To use _is-potential-custom-element-name_ programmatically, install it as a dependency via [npm](https://www.npmjs.com/):
8
9```bash
10$ npm install is-potential-custom-element-name
11```
12
13Then, `require` it:
14
15```js
16const isPotentialCustomElementName = require('is-potential-custom-element-name');
17```
18
19## Usage
20
21```js
22isPotentialCustomElementName('foo-bar');
23// → true
24isPotentialCustomElementName('Foo-bar');
25// → false
26isPotentialCustomElementName('baz-©');
27// → false
28isPotentialCustomElementName('annotation-xml');
29// → true
30```
31
32## Author
33
34| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") |
35|---|
36| [Mathias Bynens](https://mathiasbynens.be/) |
37
38## License
39
40_is-potential-custom-element-name_ is available under the [MIT](https://mths.be/mit) license.
Note: See TracBrowser for help on using the repository browser.