I needed to write a script to enter multi-line input to a program (psql). After a bit of googling, I found th
I have the following code in Ruby. I want to convert this code into JavaScript. What is the equivalent code in