css-html-js-minify
CSS HTML JS Minifier
Decision gist · record as of 2026-08-14
Yes, if you need a lightweight, dependency-free minifier for legacy or simple web projects. No, if you require active maintenance, modern JavaScript support (ES6+), or ongoing bug fixes—the project is abandoned as of 2018. Consider alternatives if your codebase relies on contemporary JavaScript features or if you need assurance of compatibility with current Python and web standards.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later.
- No runtime dependencies and low install friction.
- However, the project is marked abandoned with the last commit in June 2023 and no releases since April 2018, so maintenance and bug fixes are not expected.
License · maintenance · safety
GPL-3 LGPL-3 MIT (copyleft) — Licensed under GPL-3, LGPL-3, and MIT. The copyleft treatment means you must comply with GPL/LGPL terms if you distribute modified versions or link the code into derivative works; MIT is permissive. Review your use case against these obligations.
last release 2018-04-14 (3044 days) · last repo commit 2023-06-11 · 216 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 294,884 downloads/mo, #7,938 on PyPI
Alternatives
Verify before relying
pip install css-html-js-minify
from css_html_js_minify import css_minify, js_minify, html_minify
minified_css = css_minify('body {width: 50px;}')
minified_js = js_minify('var i = 1; i += 2;')
minified_html = html_minify(' <p>hello</p> ')- Whether ES6/ES7 JavaScript minification is reliable enough for modern codebases, given the fact sheet notes future JavaScript support is orphan.
- Current compatibility with Python versions beyond 3.6, since the project is abandoned and has not been tested against recent Python releases.
What it is and what it does
css-html-js-minify is a command-line and Python library tool that reduces the size of CSS, HTML, and JavaScript files by removing unnecessary whitespace, comments, and redundant syntax. It works on single files or entire folders, using async multiprocessing for batch operations. The tool is cross-platform, has no runtime dependencies, and can output minified files with optional features like SHA1 hashing for cache-busting, gzip compression, and file watching for automatic re-compression on changes.
You can use it either as a standalone command-line utility (e.g., `css-html-js-minify.py /path/to/project/static/`) or import its functions directly in Python code to minify strings or files programmatically. It handles Unicode and UTF-8 correctly, sorts CSS properties alphabetically to help identify duplicates, and can execute arbitrary commands before and after minification. However, the project has been abandoned since 2018 and is no longer actively maintained, so it may not handle modern JavaScript standards or receive bug fixes.
Use it for
- Compress static assets in a web project before deploying to production to reduce bandwidth and load times.
- Batch-process an entire folder of CSS, HTML, and JS files with a single command, optionally adding cache-busting hashes to filenames.
- Integrate minification into a build pipeline by calling Python functions directly from your build script.
- Watch a folder for changes and automatically re-minify files during development, though with a minimum 60-second interval.
- Generate gzipped versions of minified CSS and JS files for servers that support gzip content encoding.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a lightweight, dependency-free minifier for legacy or simple web projects.
No, if you require active maintenance, modern JavaScript support (ES6+), or ongoing bug fixes—the project is abandoned as of 2018. Consider alternatives if your codebase relies on contemporary JavaScript features or if you need assurance of compatibility with current Python and web standards.
Install
css-html-js-minify on PyPI
Before you install
No runtime dependencies and low install friction. However, the project is marked abandoned with the last commit in June 2023 and no releases since April 2018, so maintenance and bug fixes are not expected.
Requires Python 3.6 or later.
License in practice
Licensed under GPL-3, LGPL-3, and MIT. The copyleft treatment means you must comply with GPL/LGPL terms if you distribute modified versions or link the code into derivative works; MIT is permissive. Review your use case against these obligations.
Quickstart
pip install css-html-js-minify
from css_html_js_minify import css_minify, js_minify, html_minify
minified_css = css_minify('body {width: 50px;}')
minified_js = js_minify('var i = 1; i += 2;')
minified_html = html_minify(' <p>hello</p> ')
Verify before relying
- Whether ES6/ES7 JavaScript minification is reliable enough for modern codebases, given the fact sheet notes future JavaScript support is orphan.
- Current compatibility with Python versions beyond 3.6, since the project is abandoned and has not been tested against recent Python releases.
Package facts
| License | GPL-3 LGPL-3 MIT copyleft |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 3,044 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 294,884 / month, #7,938 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleEnvironment :: Other EnvironmentIntended Audience :: DevelopersIntended Audience :: Other AudienceLicense :: OSI Approved :: GNU General Public License (GPL)License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)Natural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.6Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development |
Evidence: css_html_js_minify-2.5.5-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “production file optimization”
- css-html-js-minifyMinifies CSS, HTML, and JavaScript files or folders to reduce file…
- scourScour optimizes and cleans SVG files by removing redundant data and…
- cylpCyLP provides a Python interface to COIN-OR's linear and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also Flask-Minify · htmlmin2 · rcssmin · minify-html · jsbeautifier · htmlmin · mkdocs-minify-plugin · cssmin · django-htmlmin · cssbeautifier