# dom-node-iterator

> A portable NodeIterator polyfill.

Latest version **5.0.0** (published 2020-04-01) · MIT license · 0 weekly downloads

## Install

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

## 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 | 5.0.0 |
| Published | 2020-04-01 |
| First published | 2015-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 29.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Randall Leeds |
| Maintainers | tilgovi |
| Keywords | dom, ie, NodeIterator, shim |

## Links

- npm: https://www.npmjs.com/package/dom-node-iterator
- Repository: https://github.com/tilgovi/dom-node-iterator
- Issues: https://github.com/tilgovi/dom-node-iterator/issues
- npm.io page: https://npm.io/package/dom-node-iterator

## 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

- 5.0.0 (latest) — 2020-04-01
- 4.0.0 — 2020-03-31
- 3.5.3 — 2016-09-13
- 3.5.2 — 2016-09-13
- 3.0.1 — 2016-09-13
- 3.1.4 — 2016-09-13
- 3.2.1 — 2016-09-13
- 3.3.1 — 2016-09-13
- 3.4.2 — 2016-09-13
- 3.5.1 — 2016-09-13
- 3.5.0 — 2016-02-21
- 3.4.1 — 2016-02-21
- 3.3.0 — 2016-02-21
- 3.2.0 — 2016-02-21
- 3.1.3 — 2015-10-22
- … 4 more at https://npm.io/package/dom-node-iterator/versions

## README

NodeIterator
============

The `dom-node-iterator` package provides a spec-compliant implementation of
`NodeIterator` for environments that lack an implementation or conform to an
older specification.

In environments that implement an older specification or do not implement the
specification at all, behavior in the presence of DOM mutation is undefined.

This package implements the [es-shim API](https://github.com/es-shims/api)
interface. It works in an ES5-supported environment with a DOM implementation
and complies with the [spec](https://dom.spec.whatwg.org/#nodeiterator).

Installation
============

Using npm:

    npm install dom-node-iterator

Usage
=====

```js
// Install support, polluting the global namespace.
require('dom-node-iterator/auto');
var iter = document.createNodeIterator(document.body);

// Get the best implementation, without polluting the global namespace.
var createNodeIterator = require('dom-node-iterator');
var iter = createNodeIterator.call(document, document.body);
```

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