{%= include("install-npm", {save: true}) %}
var Input = require('{%= name %}');
var input = new Input({
name: 'first',
message: 'What is your name?'
});
// async
input.ask(function(answers) {
console.log(answers);
});
// promise
input.run()
.then(function(answers) {
console.log(answers);
});
There is no need to register this with [enquirer][], as this is the only prompt type included in enquirer by default.