walk-parse5

Recursively traverse a parse5 DOM tree.

Usage no npm install needed!

<script type="module">
  import walkParse5 from 'https://cdn.skypack.dev/walk-parse5';
</script>

README

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;
});