Skip to content

Commit b62b2ae

Browse files
committed
Merge pull request #647 from MauriceButler/master
replace util.puts with console.log - support for new node vers and io.js
2 parents e34dec6 + ec6d8b2 commit b62b2ae

File tree

1 file changed

+2
-3
lines changed
  • sublimelinter/modules/libs/jsengines

1 file changed

+2
-3
lines changed

sublimelinter/modules/libs/jsengines/node.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66

77
var _fs = require('fs'),
8-
_util = require('util'),
98
_path = require('path'),
109
linterPath = process.argv[2].replace(/\/$/, '') + '/',
1110
_linter = require(linterPath + 'linter');
@@ -18,7 +17,7 @@ function run() {
1817

1918
if (filename) {
2019
results = _linter.lint(_fs.readFileSync(filename, 'utf-8'), config, linterPath);
21-
_util.puts(JSON.stringify(results));
20+
console.log(JSON.stringify(results));
2221
} else {
2322
process.stdin.resume();
2423
process.stdin.setEncoding('utf8');
@@ -29,7 +28,7 @@ function run() {
2928

3029
process.stdin.on('end', function () {
3130
results = _linter.lint(code, config, linterPath);
32-
_util.puts(JSON.stringify(results));
31+
console.log(JSON.stringify(results));
3332
});
3433
}
3534
}

0 commit comments

Comments
 (0)