
Security News
Node.js Moves Toward Stable TypeScript Support with Amaro 1.0
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
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.
$ pip install ps-minifier
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.
The psminifier module can be imported from python script as follows.
from ps_minifier.psminifier import minify
script = "[Some Powershell Scripts]"
minified_script = minify(script)
print(minified_script)
FAQs
A minifier for PowerShell scripts.
We found that ps-minifier demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.