How to use the history function from prompt

Find comprehensive JavaScript prompt.history code examples handpicked from public code repositorys.

428
429
430
431
432
433
434
435
436
437
default: tmpdflt,
ask: function () {
  if (prompt.history(parentToken) === null) {
    return false
  }
  // const name = prompt.history(parentToken).value
  return prompt.history(parentToken).value === 'yes'
},
conform: function (filename) {
  if (fs.existsSync(filename)) {
fork icon2
star icon2
watch icon4

+ 7 other calls in file