From d80ea9c4375280ee60ea9c807dc92664cd3de166 Mon Sep 17 00:00:00 2001 From: Zachary Voase Date: Sun, 3 Jan 2010 12:47:04 +0000 Subject: [PATCH] Added a README file. --- README | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..9747bd6 --- /dev/null +++ b/README @@ -0,0 +1,22 @@ + + +# `cssmin` + +This is a Python port of the [YUI CSS Compressor][yuicompressor]. Install it: + + [yuicompressor]: http://developer.yahoo.com/yui/compressor/ + + $ easy_install cssmin # OR + $ pip install cssmin + +Use it from the command-line: + + $ cssmin --help + $ cat file1.css file2.css file3.css | cssmin > output.min.css + $ cssmin --wrap 1000 < input.css > output.css + +Or use it from Python: + + >>> import cssmin + >>> output = cssmin.cssmin(open('input.css').read()) + >>> print output