1. is-potential-custom-element-name
Check whether a given string matches the `PotentialCustomElementName` production as defined in the HTML Standard.
is-potential-custom-element-name
Package: is-potential-custom-element-name
Created by: mathiasbynens
Last modified: Sun, 19 Jun 2022 02:48:31 GMT
Version: 1.0.1
License: MIT
Downloads: 63,012,180
Repository: https://github.com/mathiasbynens/is-potential-custom-element-name

Install

npm install is-potential-custom-element-name
yarn add is-potential-custom-element-name

is-potential-custom-element-name Build status

is-potential-custom-element-name checks whether a given string matches the PotentialCustomElementName production as defined in the HTML Standard.

Installation

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');

Usage

 isPotentialCustomElementName('foo-bar');
// → true
isPotentialCustomElementName('Foo-bar');
// → false
isPotentialCustomElementName('baz-©');
// → false
isPotentialCustomElementName('annotation-xml');
// → true

Author

twitter/mathias
Mathias Bynens

License

is-potential-custom-element-name is available under the MIT license.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin