Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/minifier/mod.ts>minify

Minify HTML, JS, CSS, and JSON with this WASM-powered module for Deno!
Latest
function minify
import { minify } from "https://deno.land/x/minifier@v1.1.1/mod.ts";

Minifies the given code of the given language type.

Type Parameters

T extends Language | Lowercase<keyof Language>

Parameters

language: T

the language that is to be minified

code: string

the code to minify