# block-elements

> Array of "block level elements" defined by the HTML specification

Latest version **1.2.0** (published 2017-05-02) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2017-05-02 |
| First published | 2014-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19 |
| Author | Nathan Rajlich |
| Maintainers | tootallnate |
| Keywords | browser, data, block, level, elements, html, html4, html5, array |

## Links

- npm: https://www.npmjs.com/package/block-elements
- Repository: https://github.com/webmodules/block-elements
- Issues: https://github.com/webmodules/block-elements/issues
- npm.io page: https://npm.io/package/block-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

- 1.2.0 (latest) — 2017-05-02
- 1.1.0 — 2015-03-20
- 1.0.1 — 2015-03-20
- 1.0.0 — 2014-08-27

## README

# block-elements

### Array of "block level elements" defined by the HTML specification

Exports an Array of "block level element" node names as defined by the HTML spec.

The list is programatically generated from [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements).

## Usage

As an Array:

```
var blocks = require('block-elements')
blocks.indexOf('div') > -1 // true
```

As an Object:

```
var hash = require('block-elements/hash')
hash['div'] && hash['DIV'] // true
```

As a Set:

```
var set = require('block-elements/set')
set.has('div') && set.has('DIV') // true
```

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