https://github.com/niklus/codetrim
A simple example of minifying code with wasm. Compiled with golang.
https://github.com/niklus/codetrim
golang minify-css minify-html minify-javascript minify-json wasm
Last synced: 3 months ago
JSON representation
A simple example of minifying code with wasm. Compiled with golang.
- Host: GitHub
- URL: https://github.com/niklus/codetrim
- Owner: Niklus
- Created: 2023-03-03T23:10:16.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-20T09:53:18.000Z (about 1 year ago)
- Last Synced: 2025-01-16T04:26:26.321Z (4 months ago)
- Topics: golang, minify-css, minify-html, minify-javascript, minify-json, wasm
- Language: JavaScript
- Homepage: https://codetrim.dev/
- Size: 2.96 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Codetrim
Minify JS, CSS, HTML, and JSON with WASM
## [codetrim.dev](https://codetrim.dev/)
## Commands
```bash
GOOS=js GOARCH=wasm go build -o static/wasm/main.wasm main.go
``````bash
cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" ./static/wasm
```