Skip to content

Commit

Permalink
Merge pull request #647 from MauriceButler/master
Browse files Browse the repository at this point in the history
replace util.puts with console.log - support for new node vers and io.js
  • Loading branch information
groteworld committed Apr 9, 2015
2 parents e34dec6 + ec6d8b2 commit b62b2ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sublimelinter/modules/libs/jsengines/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

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

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

process.stdin.on('end', function () {
results = _linter.lint(code, config, linterPath);
_util.puts(JSON.stringify(results));
console.log(JSON.stringify(results));
});
}
}
Expand Down

0 comments on commit b62b2ae

Please sign in to comment.