A yes/no question prompt.
require('positive') => (question = '', defaultAnswer = true) => Boolean
var confirm =var sure =console
yn is a simple module that determines a yes/no answer.
Synchronous by Design
positive is synchronous on purpose - in a CLI like environment there's
little need for a prompt to be asynchronous (unless we wanted to do
something in the background, in which case
positive doesn't match your
- Sponsored by nearForm