sa-html-parser
v0.0.10
Published
`sa-html-parser` is a parser designed for HTML code static analysis.
Downloads
14
Readme
sa-html-parser
sa-html-parser
is a parser designed for HTML code static analysis.
Install
npm
yarn add sa-html-parser
yarn
npm install sa-html-parser
Usage
import { parse } from "sa-html-parser";
const root = parse("<html><body><div id='foo'></div></bod></html>");
root;
// {
// type: "Root",
// children: [ ... ],
// start: 0,
// end: 45,
// ...
// }
//