app php01 790c53caa0 最后一版uniaiim 10 tháng trước cách đây
..
LICENSE-MIT.txt 790c53caa0 最后一版uniaiim 10 tháng trước cách đây
README.md 790c53caa0 最后一版uniaiim 10 tháng trước cách đây
index.js 790c53caa0 最后一版uniaiim 10 tháng trước cách đây
package.json 790c53caa0 最后一版uniaiim 10 tháng trước cách đây

README.md

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.