# void-elements

> Array of "void elements" defined by the HTML specification.

Latest version **3.1.0** (published 2017-01-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install void-elements
pnpm add void-elements
yarn add void-elements
bun add void-elements
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2017-01-19 |
| First published | 2014-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/void-elements) |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | hemanth.hm |
| Maintainers | alubbe, bloodyowl, forbeslindesay, hemanth, jbnicolai, jeromew, timothygu |
| Keywords | html, void, elements |

## Links

- npm: https://www.npmjs.com/package/void-elements
- Repository: https://github.com/pugjs/void-elements
- Homepage: https://github.com/jadejs/void-elements
- Issues: https://github.com/jadejs/void-elements/issues
- npm.io page: https://npm.io/package/void-elements

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 3.1.0 (latest) — 2017-01-19
- 2.0.1 — 2015-01-28
- 2.0.0 — 2015-01-28
- 1.0.0 — 2014-08-31
- 0.1.1 — 2014-08-29
- 0.1.0 — 2014-08-29

## README

void-elements
==============

### Object of "void elements" defined by the HTML specification

Exports an `Object` of "void element" node names as defined by the HTML spec.

The list is programatically generated from the [latest W3C HTML draft](http://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements).

[![Build Status](https://img.shields.io/travis/pugjs/void-elements/master.svg?style=flat)](https://travis-ci.org/pugjs/void-elements)
[![Developing Dependency Status](https://img.shields.io/david/dev/pugjs/void-elements.svg?style=flat)](https://david-dm.org/pugjs/void-elements#info=devDependencies)
[![NPM version](https://img.shields.io/npm/v/void-elements.svg?style=flat)](https://www.npmjs.org/package/void-elements)

Usage
-----

```js
var voidElements = require('void-elements');

assert(!voidElements['span'], '<span> is not a void element');
assert(voidElements['img'], '<img> is a void element');
```

License
-------

MIT

---
_Source: https://npm.io/package/void-elements · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
