Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
validate-element-name
Advanced tools
Validate the name of a custom element
Custom element names should start with a-z
and contain a-z
and at least one -
with optionally 0-9
.
You should not use the x-
, polymer-
, ng-
prefixes.
$ npm install validate-element-name
import validateElementName from 'validate-element-name';
validate('unicorn');
//=> {isValid: false, message: 'Custom element names must contain a hyphen. Example: unicorn-cake'}
See cli.js for real-world usage.
$ npm install --global validate-element-name
$ validate-element-name --help
Usage
$ validate-element-name <element-name>
Example
$ validate-element-name s-slider
✔︎ Valid element name.
FAQs
Validate the name of a custom element
The npm package validate-element-name receives a total of 2,202 weekly downloads. As such, validate-element-name popularity was classified as popular.
We found that validate-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 for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.