A minifier for PowerShell scripts.
Project description
ps-minifier
A very basic minifier for PowerShell scripts.
Currently, a semicolon (;
) is required at the end of each line in the script it is given.
NOTE: This minifier is currently not very complex, and (while it works with programs I have tested it on) may not output functioning code for all programs it is given.
Installation
pip install ps-minifier
Usage
Help:
psminifier -h
usage: psminifier [-h] [-f FILE] [-o OUT_FILE]
optional arguments:
-h, --help show this help message and exit
-f FILE, --file FILE path to file to minify
-o OUT_FILE, --out-file OUT_FILE
path to save the result
Pass the path to the file: psminifier -f FILE_PATH
Pass the path to save the result to: psminifier -o OUTPUT_PATH
If psminifier
is run without -f
it will prompt the user to enter code via the standard input.
If it is run without -o
it will output the result to the standard output.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ps_minifier-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bbdd2895c6b15c184d6404589d7127a6bbbf71ad18d41fc9d22e4530b1c6c21 |
|
MD5 | 52ccde1de7e2c7f017c1d6fdfef4fc9b |
|
BLAKE2b-256 | d4bf38ff803ea28375ccad5c4ca98f9a0edb9be63ab09134fc6a43342ebe6f3b |