JavaScript minifier.
Usage
from jsmin import jsmin
with open('myfile.js') as js_file:
minified = jsmin(js_file.read())
You can run it as a commandline tool also:
python -m jsmin myfile.js
Where to get it
install the package from pypi
get the latest release from the stable branch on bitbucket
get the development version from the default branch on bitbucket
Contributing
Issues and Pull requests will be gratefully received on Bitbucket. Pull requests on github are great too, but the issue tracker lives on bitbucket.
If possible, please make separate pull requests for tests and for code: tests will be committed on the stable branch (which tracks the latest released version) while code will go to default by, erm, default.
Unless you request otherwise, your Bitbucket identity will be added to the contributor’s list below; if you prefer a different name feel free to add it in your pull request instead. (If you prefer not to be mentioned you’ll have to let the maintainer know somehow.)
Build/test status
Both default and stable branches are tested with Travis: https://travis-ci.org/tikitu/jsmin
Stable (latest released version plus any new tests) is tested against CPython 2.6, 2.7, 3.2, and 3.3. Currently:
If stable is failing that means there’s a new test that fails on the latest released version on pypi, with no fix yet released.
Default (development version, might be ahead of latest released version) is tested against CPython 2.6, 2.7, 3.2, and 3.3. Currently:
If default is failing don’t use it, but as long as stable is passing the pypi release should be ok.
Contributors (chronological commit order)
Dave St.Germain (original author)
Tikitu de Jager (current maintainer)
Release files for jsmin 2.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jsmin-2.0.9.tar.gz | 7.9 kB | Details |
Release files / jsmin-2.0.9.tar.gz
| Download URL | jsmin-2.0.9.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04b6b05dd05b3ec27066f4274ed94e65f2f092017ee9c376a01f83de0d376dab
|
|
BLAKE2b-256 checksum How to use checksums |
56e69f097506944e34d8078233b05d5095745d8617853ad2d62eef26a9ec7c28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |