is-potential-custom-element-name
Advanced tools
Check whether a given string matches the `PotentialCustomElementName` production as defined in the HTML Standard.
Weekly downloads
Readme
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:
$ npm install is-potential-custom-element-name
Then, require
it:
const isPotentialCustomElementName = require('is-potential-custom-element-name');
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.
Check whether a given string matches the `PotentialCustomElementName` production as defined in the HTML Standard.
The npm package is-potential-custom-element-name receives a total of 10,833,839 weekly downloads. As such, is-potential-custom-element-name popularity was classified as popular.
We found that is-potential-custom-element-name demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.