node-html-parser is an NPM package for quickly parsing HTML strings into a basic DOM tree.
node-html-parser is designed to parse "massive HTML files" quickly and efficiently, returning a basic DOM structure that can be queried and manipulated. It is a popular NPM package with over a million downloads a week.
See the NPM listing for more information and instructions for proper usage: https://www.npmjs.com/package/node-html-parser