Skip to content

Commit

Permalink
use process.stdout.write
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemao committed Jun 15, 2015
1 parent c41a2f8 commit f1ace4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli.js
Expand Up @@ -84,7 +84,7 @@ if (process.stdin.isTTY) {
}
});
} else {
console._stdout.write(result.data);
process.stdout.write(result.data);
}

extraInfo(result.retained, result.stripped);
Expand All @@ -95,7 +95,7 @@ if (process.stdin.isTTY) {
process.stdin
.pipe(concat(function(data) {
var result = simplePreprocess(data, type, env);
console._stdout.write(result.data);
process.stdout.write(result.data);
extraInfo(result.retained, result.stripped);
}));
}

0 comments on commit f1ace4e

Please sign in to comment.