Skip to content

Commit 1146187

Browse files
authored
fix(stdout): wait for output to be processed instead of buffering (#29)
* fix(stdout): wait for output to be processed instead of buffering
1 parent f3a59a9 commit 1146187

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ class PgAnonymizer extends Command {
118118
let out: any;
119119
if (flags.output === "-") {
120120
out = process.stdout;
121+
out._handle.setBlocking(true);
121122
console.error("Output to stdout");
122123
} else {
123124
out = fs.createWriteStream(flags.output);

0 commit comments

Comments
 (0)