# domconstants

> Commonly used DOM constants for various projects.

Latest version **1.1.6** (published 2023-11-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install domconstants
pnpm add domconstants
yarn add domconstants
bun add domconstants
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.6 |
| Published | 2023-11-10 |
| First published | 2019-05-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Andrea Giammarchi |
| Maintainers | webreflection |
| Keywords | dom, constants |

## Links

- npm: https://www.npmjs.com/package/domconstants
- Repository: https://github.com/WebReflection/domconstants
- Homepage: https://github.com/WebReflection/domconstants#readme
- Issues: https://github.com/WebReflection/domconstants/issues
- npm.io page: https://npm.io/package/domconstants

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.1.6 (latest) — 2023-11-10
- 1.1.5 — 2023-11-07
- 1.1.4 — 2023-11-07
- 1.1.3 — 2023-11-07
- 1.1.2 — 2023-11-07
- 1.1.1 — 2023-11-07
- 1.1.0 — 2023-11-06
- 1.0.0 — 2022-10-28
- 0.1.2 — 2021-01-08
- 0.1.1 — 2019-05-10
- 0.1.0 — 2019-05-10

## README

# domconstants

Commonly used DOM constants for various projects.

```js
export {
  ELEMENT_NODE,             // Node.ELEMENT_NODE
  ATTRIBUTE_NODE,           // Node.ATTRIBUTE_NODE
  TEXT_NODE,                // Node.TEXT_NODE
  COMMENT_NODE,             // Node.COMMENT_NODE
  DOCUMENT_NODE,            // Node.DOCUMENT_NODE
  DOCUMENT_TYPE_NODE,       // Node.DOCUMENT_TYPE_NODE
  DOCUMENT_FRAGMENT_NODE,   // Node.DOCUMENT_FRAGMENT_NODE
  TEXT_ELEMENTS,            // a RegExp matching nodes that need textContent
  VOID_ELEMENTS             // a RegExp of all void elements (i.e. img, input, etc...)
};
```

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