@nulo/html.js (0.0.9)
Installation
@nulo:registry=
npm install @nulo/html.js@0.0.9
"@nulo/html.js": "0.0.9"
About this package
html.js
Escribí HTML en JS sin JSX.
Instalar
npm config set @nulo:registry https://gitea.nulo.in/api/packages/nulo/npm/
npm add @nulo/html.js
Uso
import {render, h1, doctype, metaUtf8, meta, link} from '@nulo/html.js'
const head = [
doctype(),
metaUtf8,
meta({ name: "viewport", content: "width=device-width, initial-scale=1.0" }),
link({ rel: "stylesheet", href: "style.css" }),
]
const html = render(
...head,
h1("Hola mundo!")
)
Dependencies
Dependencies
ID | Version |
---|---|
html-escaper | ^3.0.3 |
Development Dependencies
ID | Version |
---|---|
@types/html-escaper | ^3.0.0 |
@types/node | ^18.11.17 |
typescript | ^4.9.4 |
Details
Assets (1)
Versions (5)
View all
html.js-0.0.9.tgz
1.8 KiB