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