aoc-2021/day_7/code.js
2021-12-07 08:36:03 +01:00

18 lines
No EOL
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)
})