Skip to content

Instantly share code, notes, and snippets.

@tail-call
Created August 8, 2017 06:37
Show Gist options
  • Save tail-call/3b0bf1530744b4469295175c953dd781 to your computer and use it in GitHub Desktop.
Save tail-call/3b0bf1530744b4469295175c953dd781 to your computer and use it in GitHub Desktop.
// A hard way to print "boombastic"
var cat = child_process.spawn("cat");
cat.stdin.write("boombastic");
console.log(cat.stdout.read().utf8Slice())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment