Kjscompress/csskompress is set of two applications (kjscompress a csscompress) to remove non-significant whitespaces and comments from files containing JavaScript and CSS. Both are command-line applications for GNU/Linux operating system.


Is built on top of JavaScript interpreter from KHTML, removes non-significant whitespaces (including line ends) and comments. It can also validate compressed JavaScript code (optional) and it's also capable of code obfuscation (this functionality is in alpha version). Kjscompress is also able to decompress compressed JavaScript code to human-readable form.

kjscompress usage


Compresses CSS files, removes non-significant whitespaces (including line ends) and comments in form /*- comment -*/. Other comments are left (CSS-hacks etc.)

csscompress usage