Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# see the replacement character ( Buffer.from(new TextEncoder().encode('\u{fffd}')) ) instead
node -e 'process.stdout.write("👌"[0]);setTimeout(() => {process.stdout.end("👌"[1]); process.exit()},3e3)' |
node -e '(async (s = "") => {for await (const a of process.stdin) {console.log(a); s+= a}; console.log(s)})()'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment