walk-parse5

Recursively traverse a parse5 DOM tree.

MIT License

Downloads
3.2K
Stars
3
Committers
1

walk-parse5 NPM Version Build Status

Recursively traverse a parse5 DOM tree.

Installation

Node.js >= 8 is required. To install, type this at the command line:

npm install walk-parse5

Usage

const walk = require('walk-parse5');

walk(documentOrNode, node => {
    // Optionally kill traversal
    return false;
});