Protect your apps from supply chain attacksInstall
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
const isPotentialCustomElementName = require('is-potential-custom-element-name');
isPotentialCustomElementName('foo-bar'); // → true isPotentialCustomElementName('Foo-bar'); // → false isPotentialCustomElementName('baz-©'); // → false isPotentialCustomElementName('annotation-xml'); // → true
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 14,338,235 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 because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.