An efficient, compact HTML5 parser with blistering speed.
npm install @maxmilton/html-parser




!Dependency count
@maxmilton/html-parserAn efficient, compact HTML5 parser with blistering speed.
This is a fork of acrazing/html5parser with performance improvements and modernized tooling. All credit goes to @acrazing for creating the original lib!
TODO: Write me...
TIP: If using bun or esbuild as your bundler, import from src directly to get optimal output code (due to TypeScript const enum inlining).
``ts``
import { parse, walk } from '@maxmilton/html-parser/src';
TODO: Write me...
Report any bugs you encounter on the GitHub issue tracker.
MIT license. See LICENSE.
---
© 2025 Max Milton