minify
Go library and command-line tool that minifies HTML, CSS, JavaScript, JSON, SVG and XML.
go.tacodewolff.nl/minifyrepositorydocs
minify is a Go library and command-line tool that minifies HTML, CSS, JavaScript, JSON, SVG and XML. The library associates media types with minifier functions, so CSS and JavaScript embedded in an HTML file are minified along with it, and a user can add minifiers for other types. The command-line tool is a separate build of the same library, installed through go install, a prebuilt binary, Homebrew, apt, scoop or Docker. Python and JavaScript bindings are published as separate packages on PyPI and npm.
Worth knowing
The library includes HTTP middleware that minifies responses as they are served, based on the Content-Type header or the file extension. The README says these results should preferably be cached, because the processing happens on the fly for each request.
Identity
- Status
- Active
- Maintainer
- Taco de Wolff5
- Maintained by
- Individual
- First release
- 20156
Rendering and deploy
Releases
Adoption
Sources
- 2026-10-28: links
go.tacodewolff.nl/minify - 2026-10-28: links, Written in, License, GitHub stars
api.github.com/repos/tdewolff/minify - 2026-10-28: links, Categories, Install with
github.com/tdewolff/minify/blob/master/README.md - 2026-10-28: Runs as, Install with
github.com/tdewolff/minify/blob/v2.24.24/cmd/minify/README.md - 2026-10-28: License model, Maintainer
raw.githubusercontent.com/tdewolff/minify/v2.24.24/LICENSE - 2026-10-28: First release, Current major version
api.github.com/repos/tdewolff/minify/releases - 2026-10-28: Last release
api.github.com/repos/tdewolff/minify/releases/latest - 2026-10-28: Contributors
api.github.com/repos/tdewolff/minify/contributors?per_page=1