# walkers

> Recursive DOM traversal using htmlparser2.

Latest version **0.1.4** (published 2015-04-27) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2015-04-27 |
| First published | 2015-04-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sterling Jordan Calder |
| Maintainers | jordancalder |
| Keywords | DOM, traversal, tree, walk, recursive, html |

## Links

- npm: https://www.npmjs.com/package/walkers
- Repository: https://github.com/jordancalder/walkers
- Issues: https://github.com/jordancalder/walkers/issues
- npm.io page: https://npm.io/package/walkers

## Dependencies (3)

- [request](https://npm.io/package/request.md) ^2.55.0
- [domhandler](https://npm.io/package/domhandler.md) ^2.3.0
- [htmlparser2](https://npm.io/package/htmlparser2.md) ^3.8.2

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

- 0.1.4 (latest) — 2015-04-27
- 0.1.3 — 2015-04-21
- 0.1.2 — 2015-04-20
- 0.1.1 — 2015-04-20
- 0.1.0 — 2015-04-10

## README

Recursive DOM traversal using htmlparser2.

## Getting Started
Install the module with: `npm install walkers`

```javascript
var walkers = require('../lib/walkers.js');
var request = require('request');
var htmlparser = require("htmlparser2");

request('http://example.com', function (error, response, body) {
  if (!error && response.statusCode == 200) {
    var handler = new htmlparser.DomHandler(function (error, dom) {
      if (error) console.log(err)
      else {

        walkers.walk(dom, true, function(node){
          //Do something with leaf node
        }, function(){
          //Do something when finished walking
        })

      }
    });
    var parser = new htmlparser.Parser(handler);
    parser.write(body);
    parser.done();
  }
})
```

## License
Copyright (c) 2015 Sterling Jordan Calder  
Licensed under the MIT license.

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