Lines Matching refs:question
27 rl.question('What do you think of Node.js? ', (answer) => {
184 rl.question('Are you sure you want to exit? ', (answer) => {
259 ### `rl.question(query[, options], callback)`
267 * `signal` {AbortSignal} Optionally allows the `question()` to be canceled
272 The `rl.question()` method displays the `query` by writing it to the `output`,
276 When called, `rl.question()` will resume the `input` stream if it has been
282 The `callback` function passed to `rl.question()` does not follow the typical
289 rl.question('What is your favorite food? ', (answer) => {
294 Using an `AbortController` to cancel a question.
300 rl.question('What is your favorite food? ', { signal }, (answer) => {
305 console.log('The food question timed out');
312 Promise that fulfills with the answer. If the question is canceled using
317 const question = util.promisify(rl.question).bind(rl);
321 const answer = await question('What is you favorite food? ');