html-tags-parser

1.0.0 • Public • Published

SIMPLE HTML PARSER

a simple html parser.

Usage :

const htmlParser = require('html-tags-parser')
const elements = htmlParser()

returns a array of elements objects

interface HTMLElement {
    name : string,
    innerHtml?: string,
    outerHtml: string,
    properties: object[],
    children?: HTMLElement[],
}

Package Sidebar

Install

npm i html-tags-parser

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

2.78 kB

Total Files

3

Last publish

Collaborators

  • abderrhmane