GitHunt
NI

Niklus/codetrim

A simple example of minifying code with wasm. Compiled with golang.

Codetrim

Minify JS, CSS, HTML, and JSON with WASM

Available as a chrome extension

Commands

GOOS=js GOARCH=wasm go build -o static/wasm/main.wasm main.go
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" ./static/wasm

Languages

JavaScript82.4%Go6.4%CSS6.0%HTML5.2%
Created March 4, 2023
Updated September 19, 2025