0.1.1 • Published 9 months ago

minify-html-wasm v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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://cdn.jsdelivr.net/npm/minify-html-wasm/web/wasm");

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

9 months ago

0.1.0

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago