Skip to main content

A minifier for PowerShell scripts.

Project description

PyPI CircleCI codecov

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

To display the help menu:

$ 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.

Files for ps-minifier, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size ps_minifier-0.1.3-py3-none-any.whl (5.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size ps-minifier-0.1.3.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page