(rl, query, options)
| 121 | const rl = readline.createInterface({ input: stdin, output: stdout }); |
| 122 | |
| 123 | const readlineQuestion = (rl, query, options) => new Promise((resolve, reject) => { |
| 124 | rl.question(query, options, resolve) |
| 125 | }); |
| 126 | |
| 127 | while(true) { |
| 128 | const question = await readlineQuestion(rl, '> ') |