Minor CS fixes.

This commit is contained in:
André Cruz
2013-05-24 23:03:19 +01:00
parent 784d458e62
commit 01d8d0dbec
16 changed files with 55 additions and 52 deletions

View File

@@ -1,3 +1,6 @@
var json;
var nrData = 0;
function uncolor(str) {
return str.replace(/\x1B\[\d+m/g, '');
}
@@ -8,11 +11,9 @@ function stringify(data) {
// -------------------------
var nrData = 0;
// In the json output, everything goes to stderr except
// the final command result that goes to stdout.
var json = {
json = {
begin: function () {
process.stderr.write('[');
},