8000 GitHub - Sec-ant/minify-html-wasm: Extremely fast and smart HTML + JS + CSS minifier, available for Rust, Deno, Java, Node.js, Python, Ruby, and WASM · GitHub
[go: up one dir, main page]

Skip to content

About

Extremely fast and smart HTML + JS + CSS minifier, available for Rust, Deno, Java, Node.js, Python, Ruby, and WASM

Resources

Stars

2 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

1,015 Commits

Folders and files

Repository files navigation

minify-html-wasm

A wasm wrapper of the rust crate minify-html.

Install

npm i minify-html-wasm

Usage

import init, { minify } from "minify-html-wasm";

const encoder = new TextEncoder();
const decoder = new TextDecoder();

await init("https://fastly.jsdelivr.net/npm/minify-html-wasm@0.1.1/dist/web/index_bg.wasm");

const minified = decoder.decode(
  minify(encoder.encode("<p>  Hello, world!  </p>"), {
    keep_spaces_between_attributes: true,
    keep_comments: true,
  })
);

About

Extremely fast and smart HTML + JS + CSS minifier, available for Rust, Deno, Java, Node.js, Python, Ruby, and WASM

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0