html-to-ivi

0.0.2 • Public • Published

html-to-ivi

Transforms HTML to ivi Virtual DOM.

Usage Example

section.html:

<section>
  <p>Paragraph 1.</p>
  <p>Paragraph 2.</p>
</section>

Run html-to-ivi:

$ html-to-ivi --file ./section.html

Output:

function Component() {
  return h.section().children(h.p(), h.p());
}

Options

  --file -f <name>         Input file.
  --no-trim                Disable whitespace trimming.
  --component-name <name>  Component name.
  --version -v             Print version.

/html-to-ivi/

    Package Sidebar

    Install

    npm i html-to-ivi

    Weekly Downloads

    2

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • localvoid