Gathering detailed insights and metrics for html-void-elements
Gathering detailed insights and metrics for html-void-elements
Gathering detailed insights and metrics for html-void-elements
Gathering detailed insights and metrics for html-void-elements
void-elements
Array of "void elements" defined by the HTML specification.
html-tags
List of standard HTML tags
self-closing-tags
HTML void elements are not the only self-closing tags. This includes common SVG self-closing elements as well.
@types/html-void-elements
Stub TypeScript definitions entry for html-void-elements, which provides its own types definitions
npm install html-void-elements
Typescript
Module System
Node Version
NPM Version
99.1
Supply Chain
97.9
Quality
75.6
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
767,488,655
Last Day
166,782
Last Week
3,811,010
Last Month
15,936,695
Last Year
183,462,157
28 Stars
66 Commits
1 Forks
3 Watching
1 Branches
3 Contributors
Minified
Minified + Gzipped
Latest Version
3.0.0
Package Id
html-void-elements@3.0.0
Unpacked Size
6.74 kB
Size
2.88 kB
File Count
5
NPM Version
9.6.4
Node Version
20.0.0
Publised On
19 May 2023
Cumulative downloads
Total Downloads
Last day
-8.9%
166,782
Compared to previous day
Last week
-4.3%
3,811,010
Compared to previous week
Last month
-6.5%
15,936,695
Compared to previous month
Last year
-14.4%
183,462,157
Compared to previous year
List of HTML void tag names.
This is a list of all void tag names according to HTML.
👉 Note: includes ancient (such as
basefont
andbgsound
) tag names too.
You can use this when you’re writing HTML parsers, minifiers, or compilers.
This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:
1npm install html-void-elements
In Deno with esm.sh
:
1import {htmlVoidElements} from 'https://esm.sh/html-void-elements@2'
In browsers with esm.sh
:
1<script type="module"> 2 import {htmlVoidElements} from 'https://esm.sh/html-void-elements@2?bundle' 3</script>
1import {htmlVoidElements} from 'html-void-elements' 2 3console.log(htmlVoidElements)
Yields:
1[ 2 'area', 3 'base', 4 'basefont', 5 'bgsound', 6 'br', 7 'col', 8 'command', 9 'embed', 10 'frame', 11 'hr', 12 'image', 13 'img', 14 'input', 15 'keygen', 16 'link', 17 'meta', 18 'param', 19 'source', 20 'track', 21 'wbr' 22]
This package exports the identifier htmlVoidElements
.
There is no default export.
htmlVoidElements
List of HTML void tag names (Array<string>
).
This package is fully typed with TypeScript. It exports no additional types.
This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 14.14+ and 16.0+. It also works in Deno and modern browsers.
This package is safe.
wooorm/html-tag-names
— list of HTML tag nameswooorm/html-element-attributes
— map of HTML elements to attributesYes please! See How to Contribute to Open Source.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 1/30 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More