Installations
npm install html-void-elements
Developer Guide
Typescript
Yes
Module System
ESM
Node Version
20.0.0
NPM Version
9.6.4
Score
99.1
Supply Chain
97.9
Quality
75.6
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
wooorm
Download Statistics
Total Downloads
767,488,655
Last Day
166,782
Last Week
3,811,010
Last Month
15,936,695
Last Year
183,462,157
GitHub Statistics
28 Stars
66 Commits
1 Forks
3 Watching
1 Branches
3 Contributors
Bundle Size
375.00 B
Minified
255.00 B
Minified + Gzipped
Sponsor this package
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
767,488,655
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
html-void-elements
List of HTML void tag names.
Contents
- What is this?
- When should I use this?
- Install
- Use
- API
- Types
- Compatibility
- Security
- Related
- Contribute
- License
What is this?
This is a list of all void tag names according to HTML.
👉 Note: includes ancient (such as
basefont
andbgsound
) tag names too.
When should I use this?
You can use this when you’re writing HTML parsers, minifiers, or compilers.
Install
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>
Use
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]
API
This package exports the identifier htmlVoidElements
.
There is no default export.
htmlVoidElements
List of HTML void tag names (Array<string>
).
Types
This package is fully typed with TypeScript. It exports no additional types.
Compatibility
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.
Security
This package is safe.
Related
wooorm/html-tag-names
— list of HTML tag nameswooorm/html-element-attributes
— map of HTML elements to attributes
Contribute
Yes please! See How to Contribute to Open Source.
License
MIT © Titus Wormer
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
- Info: project has a license file: license:0
- Info: FSF or OSI recognized license: MIT License: license:0
Reason
Found 1/30 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/wooorm/html-void-elements/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/wooorm/html-void-elements/main.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/wooorm/html-void-elements/main.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/main.yml:15
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
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
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
Project has not signed or included provenance with any releases.
Details
- Warn: release artifact 1.0.5 not signed: https://api.github.com/repos/wooorm/html-void-elements/releases/23088278
- Warn: release artifact 1.0.4 not signed: https://api.github.com/repos/wooorm/html-void-elements/releases/17175931
- Warn: release artifact 1.0.5 does not have provenance: https://api.github.com/repos/wooorm/html-void-elements/releases/23088278
- Warn: release artifact 1.0.4 does not have provenance: https://api.github.com/repos/wooorm/html-void-elements/releases/17175931
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 1 are checked with a SAST tool
Score
3.1
/10
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 MoreOther packages similar to 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