mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
16 lines
294 B
JavaScript
Generated
16 lines
294 B
JavaScript
Generated
import { writeFile, writeFileSync } from "node:fs";
|
|
|
|
process.exitCode = 1;
|
|
let input = process.argv[2];
|
|
|
|
if (input === "1") {
|
|
input = 1;
|
|
} else if (input === "2") {
|
|
input = 2;
|
|
}
|
|
|
|
writeFileSync(input, "Hello World!\n");
|
|
writeFile(input, "Hello World!\n", () => {
|
|
process.exitCode = 0;
|
|
});
|