rastrillo / fiesta Public

Clone
git clone https://amadan.net/rastrillo/fiesta

Plain git — no account needed to clone.

Download

Download this file

1// Upcases stdin, and echoes TZ and its own arguments, so one run proves
2// stdin, Env, Args and stdout capture.
3const chunks = [];
4for await (const chunk of process.stdin) chunks.push(chunk);
5process.stdout.write(Buffer.concat(chunks).toString("utf8").toUpperCase());
6process.stdout.write(` tz=${process.env.TZ ?? ""} args=${process.argv.slice(2).join(",")}`);
7