Package Exports
- is-valid-element-name
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-valid-element-name) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-valid-element-name
Determines if an string is a valid element name. Like validate-element-name but without opinions on what a custom element name should be.
Backed by is-potential-custom-element-name which does the heavy lifting, but also checks against reserved names.
Install
npm install is-valid-element-name --saveUse
var isValidElementName = require("is-valid-element-name");
isValidElementName("hello-world"); // -> true
isValidElementName("div"); // -> false
isValidElementName("f0_0_0-what"); // -> true
// This is a reserved name.
isvalidElementName("font-face"); // -> falseLicense
BSD 2 Clause