#!/usr/bin/env node
-global.sys = require(/^v0\.[012]/.test(process.version) ? "sys" : "util");
+global.util = require("util");
var argv = require('optimist').argv,
cleanCss = require('../index'),
fs = require('fs');
if (argv._) options.source = argv._[0];
if (argv.h || argv.help) {
- global.sys.print('Usage: cleancss -o <output-file> <input-file>\n');
+ global.util.print('Usage: cleancss -o <output-file> <input-file>\n');
process.exit(0);
}
-var sys = require('sys');
+var util = require('util');
var CleanCSS = {
colors: {
var end = new Date().getTime();
if (end > start)
- sys.print(pattern + ' -> ' + (end - start) + ' milliseconds\n');
+ util.print(pattern + ' -> ' + (end - start) + ' milliseconds\n');
}
};
}
};
-module.exports = CleanCSS;
\ No newline at end of file
+module.exports = CleanCSS;