Changelog
2.1.0 - 2018-11-29
format
, result
and initial
functions defined on the options.Changelog
2.0.7 - 2018-11-14
validate
function now properly accepts false
as a return value, thanks to @g-plane.options.required
on all prompts. Uses the built-in validate()
function, allowing this functionality to be overridden or customized.options.scroll
to disable scrolling in array prompts.options.onRun
, which is called when prompt.run()
is called, after the readline instance is created.options.history
on the Input
and Text
prompts.options.term
to set the terminal, thanks to @tunnckoCore. At the moment this is only used in a couple of edge cases with the Survey
and Scale
prompts to check if the terminal is Hyper.options.skip
may now be a Boolean, thanks to @tunnckoCore