bin/cleancss: use `console.log` instead of `util.puts`.
authorXhmikosR <xhmikosr@gmail.com>
Sun, 1 Mar 2015 20:09:31 +0000 (22:09 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Sun, 1 Mar 2015 20:09:47 +0000 (22:09 +0200)
Fixes warning with node.js 0.12.

bin/cleancss

index 91a5fcd..ef7d6d1 100755 (executable)
@@ -1,6 +1,5 @@
 #!/usr/bin/env node
 
-var util = require('util');
 var fs = require('fs');
 var path = require('path');
 var CleanCSS = require('../index');
@@ -35,16 +34,16 @@ commands
   .option('-d, --debug', 'Shows debug information (minification time & compression efficiency)');
 
 commands.on('--help', function() {
-  util.puts('  Examples:\n');
-  util.puts('    %> cleancss one.css');
-  util.puts('    %> cleancss -o one-min.css one.css');
+  console.log('  Examples:\n');
+  console.log('    %> cleancss one.css');
+  console.log('    %> cleancss -o one-min.css one.css');
   if (isWindows) {
-    util.puts('    %> type one.css two.css three.css | cleancss -o merged-and-minified.css');
+    console.log('    %> type one.css two.css three.css | cleancss -o merged-and-minified.css');
   } else {
-    util.puts('    %> cat one.css two.css three.css | cleancss -o merged-and-minified.css');
-    util.puts('    %> cat one.css two.css three.css | cleancss | gzip -9 -c > merged-minified-and-gzipped.css.gz');
+    console.log('    %> cat one.css two.css three.css | cleancss -o merged-and-minified.css');
+    console.log('    %> cat one.css two.css three.css | cleancss | gzip -9 -c > merged-minified-and-gzipped.css.gz');
   }
-  util.puts('');
+  console.log('');
   process.exit();
 });