Skip to content

Commit

Permalink
Removed sys. Now it's called util
Browse files Browse the repository at this point in the history
  • Loading branch information
corpix committed Nov 8, 2011
1 parent 95b8e8f commit 7f414ef
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions node-dev
Expand Up @@ -7,8 +7,7 @@
* License: MIT
* See http://github.com/fgnass/node-dev
*/
var sys = require('sys'),
fs = require('fs'),
var fs = require('fs'),
path = require('path'),
child_process = require('child_process'),
util = require('util'),
Expand Down Expand Up @@ -44,7 +43,7 @@ process.on('SIGINT', function() {
*/
function log(msg, level) {
var csi = level == 'error' ? '1;31' : '32';
sys.log('[\x1B[' + csi + 'm' + level.toUpperCase() + '\x1B[0m] ' + msg);
util.log('[\x1B[' + csi + 'm' + level.toUpperCase() + '\x1B[0m] ' + msg);
}

/**
Expand Down Expand Up @@ -125,13 +124,13 @@ function start(title, msg) {
});
error = '';
}
sys.print(data);
util.print(data);
});
}

if (args.length > 0) {
start();
}
else {
sys.print('Usage: node-dev [options] script.js [arguments]\n');
util.print('Usage: node-dev [options] script.js [arguments]\n');
}

0 comments on commit 7f414ef

Please sign in to comment.