@nulo/html.js (0.0.9)

Published 2023-03-31 23:22:21 +00:00 by Nulo in Nulo/html.js

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
npm
2023-03-31 23:22:21 +00:00
18
Nulo
latest
1.8 KiB
Assets (1)
Versions (5) View all
0.0.9 2023-03-31
0.0.8 2023-03-09
0.0.7 2023-01-12
0.0.2 2022-12-20
0.0.1 2022-12-20