We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14ab9d1 commit ffcff1eCopy full SHA for ffcff1e
lib/default_stream.js
@@ -5,7 +5,7 @@ module.exports = function () {
5
var line = '';
6
var stream = through(write, flush);
7
return stream;
8
-
+
9
function write (buf) {
10
for (var i = 0; i < buf.length; i++) {
11
var c = typeof buf === 'string'
@@ -16,7 +16,7 @@ module.exports = function () {
16
else line += c;
17
}
18
19
20
function flush () {
21
try { fs.writeSync(1, line + '\n'); }
22
catch (e) { stream.emit('error', e) }
0 commit comments