18 lines
233 B
JavaScript
18 lines
233 B
JavaScript
|
const readline = require('readline')
|
||
|
const rl = readline.createInterface({
|
||
|
input: process.stdin,
|
||
|
terminal: false
|
||
|
})
|
||
|
|
||
|
lines = []
|
||
|
rl.on('line', (line) => {
|
||
|
lines.push(line)
|
||
|
})
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
rl.on('close', () => {
|
||
|
console.log(lines)
|
||
|
|
||
|
})
|