0.0.10 • Published 2 years ago
sa-html-parser v0.0.10
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,
// ...
// }
//