SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const readline = require("readline");
  2. const rl = readline.createInterface({
  3.   input: process.stdin,
  4.   output: process.stdout
  5. });
  6.  
  7. let lines = [];
  8.  
  9. rl.on("line", function(line) {
  10.   lines.push(line);
  11. });
  12.  
  13. rl.on("close", function() {
  14.   console.log(lines)
  15. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top