Skip to main content

Built and signed on GitHub Actions

Tiny html tag function for no-build JSX-like syntax, compatible with all modern browsers and runtimes.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
4 months ago (1.0.1)
function html
html(
strings: TemplateStringsArray,
...values: unknown[],
): string

Interprets a template literal as an HTML template.

Parameters

strings: TemplateStringsArray

The string parts

...values: unknown[]

Return Type

The concatenated string parts with values interpolated

Add Package

deno add jsr:@rbardini/html

Import symbol

import { html } from "@rbardini/html";

---- OR ----

Import directly with a jsr specifier

import { html } from "jsr:@rbardini/html";

Add Package

npx jsr add @rbardini/html

Import symbol

import { html } from "@rbardini/html";

Add Package

yarn dlx jsr add @rbardini/html

Import symbol

import { html } from "@rbardini/html";

Add Package

pnpm dlx jsr add @rbardini/html

Import symbol

import { html } from "@rbardini/html";

Add Package

bunx jsr add @rbardini/html

Import symbol

import { html } from "@rbardini/html";