Check whether a given string matches the `PotentialCustomElementName` production as defined in the HTML Standard.
npm install is-potential-custom-element-name_is-potential-custom-element-name_ checks whether a given string matches the PotentialCustomElementName production as defined in the HTML Standard.
To use _is-potential-custom-element-name_ programmatically, install it as a dependency via npm:
``bash`
$ npm install is-potential-custom-element-name
Then, require it:
`js`
const isPotentialCustomElementName = require('is-potential-custom-element-name');
`js``
isPotentialCustomElementName('foo-bar');
// → true
isPotentialCustomElementName('Foo-bar');
// → false
isPotentialCustomElementName('baz-©');
// → false
isPotentialCustomElementName('annotation-xml');
// → true
|  |
|---|
| Mathias Bynens |
_is-potential-custom-element-name_ is available under the MIT license.