shrinksafe

JavaScript "compression" system

Install

All systems
curl cmd.cat/shrinksafe.sh
Debian Debian
apt-get install shrinksafe
Ubuntu
apt-get install shrinksafe
image/svg+xml Kali Linux
apt-get install shrinksafe
Windows (WSL2)
sudo apt-get update sudo apt-get install shrinksafe
Raspbian
apt-get install shrinksafe

shrinksafe

JavaScript "compression" system

ShrinkSafe is a JavaScript "compression" system. It can typically reduce the size of your scripts by a third or more, depending on your programming style. Many other tools also shrink JavaScript files, but ShrinkSafe is different. Instead of relying on brittle regular expressions, ShrinkSafe is based on Rhino, a JavaScript interpreter. This allows ShrinkSafe to transform the source of a file with much more confidence that the resulting script will function identically to the file you uploaded. Best of all, ShrinkSafe will never change a public variable or API. That means that you can drop the compressed version of your JavaScript into your pages without changing the code that uses it.