A high-performance JavaScript code compression library written in Rust
Project description
简介
使用rust编写的高性能js代码压缩库, 支持es5, es6
安装
pip install pyminifyjs
基本使用
import pyminifyjs
jscode = """
function f(a, b){
return a+b
}
"""
result = pyminifyjs.minify_js(jscode)
print(result)
API参考
- pyminifyjs.minify_js(source_text: str, use_optimize: bool = False)
将js代码进行压缩, 返回压缩后的js代码
:param source_text: js代码
:param use_optimize: 压缩过程是否使用优化
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyminifyjs-0.3.0-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: pyminifyjs-0.3.0-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 948.7 kB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6aaeabf932c3109c4b4666a46114c00d1d333ff2d0d9e7004d11602908f3f6cb
|
|
| MD5 |
795992810f39678ec2e7f7dce8731d4b
|
|
| BLAKE2b-256 |
caabda828669d1c43818b078a11e573d8b0852abb43f04a5ecc44ca8dd052c79
|
File details
Details for the file pyminifyjs-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: pyminifyjs-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a522a9e9979414cba6494769f4fe745176f17f6d4d897d4093adb51ef176ea0
|
|
| MD5 |
55b92dd95efa1c607659149d0fb1fb6d
|
|
| BLAKE2b-256 |
e0754237d0e9f68fb4d61cdff6c8b2dabf3dcee41f804842729da1d22b933859
|
File details
Details for the file pyminifyjs-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: pyminifyjs-0.3.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b07c13cf04c33a0effdd388c01d118cfc935f5f4b4aa7915658892696b985fb9
|
|
| MD5 |
7dc19465fdc9b2d7b3ef26bf6f0513d2
|
|
| BLAKE2b-256 |
947c50c4b1862223f0b9c6972f6d918cb0962da997563ec3358260252848de7e
|
File details
Details for the file pyminifyjs-0.3.0-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: pyminifyjs-0.3.0-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
277db6dce7de3f50424016e4dd2482d3b7e42a700f19d5ade82a3cc84605ce8b
|
|
| MD5 |
0d498bda2d22f1d56e71c792890df4c0
|
|
| BLAKE2b-256 |
92dee67659eecf20414c0ac56bea5129983dedef8ba8f920149b0a802a056120
|
File details
Details for the file pyminifyjs-0.3.0-cp38-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: pyminifyjs-0.3.0-cp38-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.8+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efea53732e907a1e5644f6bcf41891b9dd0719e31aaef36d1e3e1df0f95eb27a
|
|
| MD5 |
e5dfcb17a7511071c2d0971db1be0269
|
|
| BLAKE2b-256 |
11d0ceff1b8bfbd5f0708d659c3d6024915ec4245efd924c23a62f9f82201995
|