JS to HTML string builder
Use Js to generate html strings
Install:
npm i @frango9000/html-builder
Usage:
import {a,p,br,customTag} from '@frango9000/html-builder'
.
.
.
p("Paragraph")
Outputs: <p>Paragraph</p>
a({href: "google.com", "Link")
Outputs: <a href="google.com">Link</p>
img({src: "localhost"}, "Text")
Outputs: <img url="localhost" />
customTag("pre", {zindex: "0"}, "Text")
Outputs: <pre zindex="0">Text</pre>
- style
- title
- a
- h1
- h2
- h3
- h4
- h5
- h6
- p
- b
- i
- q
- strong
- em
- pre
- code
- div
- span
- table
- thead
- tbody
- tfoot
- tr
- td
- th
- colgroup
- caption
- ul
- ol
- li
- dt
- dd
- details
- summary
- area
- base
- br
- col
- embed
- hr
- img
- input
- link
- meta
- param
- source
- track
- wbr