sa-html-parser
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

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,
//    ...
// }
//

License

Readme

Keywords

none

Package Sidebar

Install

npm i sa-html-parser

Weekly Downloads

11

Version

0.0.10

License

MIT

Unpacked Size

209 kB

Total Files

49

Last publish

Collaborators

  • yeonjuan-joah