mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 13:51:47 +00:00
* fix(child_process): fix execFileSync options.input * fix(child_process): debug err, check for Uint8Array too * fix(child_process): fix ArrayBufferIsView call * test(child_process): fix missing toString() call on test result * refactor(child_process): change options.input to input to getter calls
12 lines
244 B
JavaScript
12 lines
244 B
JavaScript
if (process.argv[2] === "STDIN") {
|
|
let result = "";
|
|
process.stdin.on("data", (data) => {
|
|
result += data;
|
|
});
|
|
process.stdin.on("close", () => {
|
|
console.log(result);
|
|
});
|
|
} else {
|
|
setTimeout(() => console.log("hello"), 150);
|
|
}
|