{"id":15413482,"url":"https://github.com/wooorm/html-void-elements","last_synced_at":"2025-10-13T07:08:21.734Z","repository":{"id":57145167,"uuid":"54215967","full_name":"wooorm/html-void-elements","owner":"wooorm","description":"List of known void HTML elements","archived":false,"fork":false,"pushed_at":"2023-11-01T11:41:20.000Z","size":73,"stargazers_count":28,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T17:53:14.405Z","etag":null,"topics":["element","html","void"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wooorm.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":"funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"wooorm"}},"created_at":"2016-03-18T16:29:32.000Z","updated_at":"2024-09-23T15:44:34.000Z","dependencies_parsed_at":"2023-01-23T14:00:15.119Z","dependency_job_id":"501fb683-b8c9-4dc7-979c-25516d0f1287","html_url":"https://github.com/wooorm/html-void-elements","commit_stats":{"total_commits":66,"total_committers":3,"mean_commits":22.0,"dds":"0.045454545454545414","last_synced_commit":"e215a52b1af83d8169c379c5051d431810af3d9f"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/wooorm/html-void-elements","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-void-elements","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-void-elements/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-void-elements/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-void-elements/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wooorm","download_url":"https://codeload.github.com/wooorm/html-void-elements/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wooorm%2Fhtml-void-elements/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014104,"owners_count":26085460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["element","html","void"],"created_at":"2024-10-01T16:57:17.633Z","updated_at":"2025-10-13T07:08:21.717Z","avatar_url":"https://github.com/wooorm.png","language":"JavaScript","readme":"# html-void-elements\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nList of HTML void tag names.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`htmlVoidElements`](#htmlvoidelements)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis is a list of all void tag names according to HTML.\n\n\u003e 👉 **Note**: includes ancient (such as `basefont` and `bgsound`) tag names\n\u003e too.\n\n## When should I use this?\n\nYou can use this when you’re writing HTML parsers, minifiers, or compilers.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 14.14+, 16.0+), install with [npm][]:\n\n```sh\nnpm install html-void-elements\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {htmlVoidElements} from 'https://esm.sh/html-void-elements@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import {htmlVoidElements} from 'https://esm.sh/html-void-elements@2?bundle'\n\u003c/script\u003e\n```\n\n## Use\n\n```js\nimport {htmlVoidElements} from 'html-void-elements'\n\nconsole.log(htmlVoidElements)\n```\n\nYields:\n\n```js\n[\n  'area',\n  'base',\n  'basefont',\n  'bgsound',\n  'br',\n  'col',\n  'command',\n  'embed',\n  'frame',\n  'hr',\n  'image',\n  'img',\n  'input',\n  'keygen',\n  'link',\n  'meta',\n  'param',\n  'source',\n  'track',\n  'wbr'\n]\n```\n\n## API\n\nThis package exports the identifier `htmlVoidElements`.\nThere is no default export.\n\n### `htmlVoidElements`\n\nList of HTML void tag names (`Array\u003cstring\u003e`).\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 14.14+ and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`wooorm/html-tag-names`](https://github.com/wooorm/html-tag-names)\n    — list of HTML tag names\n*   [`wooorm/html-element-attributes`](https://github.com/wooorm/html-element-attributes)\n    — map of HTML elements to attributes\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n\u003c!-- Definition --\u003e\n\n[build-badge]: https://github.com/wooorm/html-void-elements/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/html-void-elements/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/html-void-elements.svg\n\n[coverage]: https://codecov.io/github/wooorm/html-void-elements\n\n[downloads-badge]: https://img.shields.io/npm/dm/html-void-elements.svg\n\n[downloads]: https://www.npmjs.com/package/html-void-elements\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/html-void-elements.svg\n\n[size]: https://bundlephobia.com/result?p=html-void-elements\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esmsh]: https://esm.sh\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n","funding_links":["https://github.com/sponsors/wooorm"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fhtml-void-elements","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwooorm%2Fhtml-void-elements","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwooorm%2Fhtml-void-elements/lists"}