# is-dom-node

> ES2015 module for type checking DOM Nodes

Latest version **1.0.4** (published 2018-01-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-dom-node
pnpm add is-dom-node
yarn add is-dom-node
bun add is-dom-node
```

## 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.0.4 |
| Published | 2018-01-11 |
| First published | 2018-01-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Julian Lloyd |
| Maintainers | jlmakes |
| Keywords | html, element, dom, node |

## Links

- npm: https://www.npmjs.com/package/is-dom-node
- Repository: https://github.com/jlmakes/is-dom-node
- Homepage: https://github.com/jlmakes/is-dom-node#readme
- Issues: https://github.com/jlmakes/is-dom-node/issues
- npm.io page: https://npm.io/package/is-dom-node

## 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.0.4 (latest) — 2018-01-11
- 1.0.3 — 2018-01-11
- 1.0.2 — 2018-01-10
- 1.0.1 — 2018-01-06
- 1.0.0 — 2018-01-06

## README

# is-dom-node

<a href="https://travis-ci.org/jlmakes/is-dom-node"> <img src="https://img.shields.io/travis/jlmakes/is-dom-node.svg" alt="Build status"> </a>
<a href="https://coveralls.io/github/jlmakes/is-dom-node"> <img src="https://img.shields.io/coveralls/jlmakes/is-dom-node.svg" alt="Coverage"> </a>
<a href="https://www.npmjs.com/package/is-dom-node"> <img src="https://img.shields.io/npm/v/is-dom-node.svg" alt="Version"> </a>
<img src="https://img.shields.io/badge/min+gzip-0.2KB-blue.svg" alt="0.2KB min+gzip">
<a href="https://github.com/jlmakes/is-dom-node/blob/master/LICENSE"> <img src="https://img.shields.io/badge/license-MIT-1283c3.svg" alt="MIT License"> </a>

## Installation

### Browser

A simple and fast way to get started is to include this script on your page:

```html
<script src="https://unpkg.com/is-dom-node"></script>
```

This will create the global variable `isDomNode`.

### Module

```bash
npm install is-dom-node
```

#### CommonJS

```js
const isDomNode = require('is-dom-node')
```

#### ES2015

```js
import isDomNode from 'is-dom-node'
```

## Usage

```js
const node = document.querySelector('#cake')
isDomNode(node)
// => true

const html = '<div id="cake"></div>'
isDomNode(html)
// => false
```

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