Installation

Kjscompress/csskompress is distributed as source code for GNU/Linux and also as Debian package.
Installation from source:
tar xvfz kjscompress-1.1.1.tar.bz
cd kjscompress-1.1.1/
./configure
make
make install (as root)

Usage

Both applications are command-line tools.

Csskompress

Options:
-f <file name> input file name (if ommited, stdin is used)
-t <file name> output file name (if ommited, stdout is used)
-h help

Example:
csscompress < big.css > new_smaller.css
(filer big.css will be "compressed" and written to file new_smaller.css)

Kjskompress

Options:
-h help
-f <file name> input file name (if omitted, stdin is used)
-t <file name> output file name (if ommited, stdout is used)
-d decompress (instead of compress)
-v do not validate code
-n don't remove line ends
-e [n] sets how many characters will be print when error occures

Alpha version options (for testing purposes):
-o turns on obfuscation
-c adds original identifier names as comments
-a with this option, kjscompress requires confirmation for obfuscation
-p <prefix> don't obfuscate identifiers beginning with given prefix
-b <file name> use blacklist for identifiers not to obfuscate
-B <file name> save used blacklist to file

Example
kjscompress -v < input.js > output.js
(file input.js will be "compressed" and written to file output.js and will not be validated)