https://github.com/stevenvachon/walk-parse5
Recursively traverse a parse5 DOM tree.
https://github.com/stevenvachon/walk-parse5
nodejs parse5 traverse walk
Last synced: 3 months ago
JSON representation
Recursively traverse a parse5 DOM tree.
- Host: GitHub
- URL: https://github.com/stevenvachon/walk-parse5
- Owner: stevenvachon
- License: mit
- Created: 2017-05-29T15:15:15.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-04T16:33:26.000Z (about 6 years ago)
- Last Synced: 2024-10-06T04:24:01.561Z (8 months ago)
- Topics: nodejs, parse5, traverse, walk
- Language: JavaScript
- Size: 3.91 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# walk-parse5 [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
> Recursively traverse a [parse5](https://npmjs.com/parse5) DOM tree.
## Installation
[Node.js](http://nodejs.org/) `>= 8` is required. To install, type this at the command line:
```shell
npm install walk-parse5
```## Usage
```js
const walk = require('walk-parse5');walk(documentOrNode, node => {
// Optionally kill traversal
return false;
});
```[npm-image]: https://img.shields.io/npm/v/walk-parse5.svg
[npm-url]: https://npmjs.com/package/walk-parse5
[travis-image]: https://img.shields.io/travis/stevenvachon/walk-parse5.svg
[travis-url]: https://travis-ci.org/stevenvachon/walk-parse5