This package has been deprecated

Author message:

deprecated, try: github: https://github.com/ibyar/aurora, npm: https://www.npmjs.com/package/@ibyar/element

@aurorats/html-parser
TypeScript icon, indicating that this package has built-in type declarations

0.1.12 • Public • Published

Aurora HTML Parser

Aurora HTML parser, parse an html string or file to jsx component.

Install

npm i --save @aurorats/html-parser
yarn add @aurorats/html-parser

Example

import { toJsxAttrComponent } from '@aurorats/html-parser';

let template = 
`<div name="data-div">
    <person-view [name]="alex" age="35" />
</div>`;
let jsxComponent = toJsxAttrComponent(template)
console.log(jsxComponent);

/@aurorats/html-parser/

    Package Sidebar

    Install

    npm i @aurorats/html-parser

    Weekly Downloads

    5

    Version

    0.1.12

    License

    MIT

    Unpacked Size

    53.8 kB

    Total Files

    12

    Last publish

    Collaborators

    • salem.ebo