Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 479 Bytes

.verb.md

File metadata and controls

27 lines (21 loc) · 479 Bytes

Install

{%= include("install-npm", {save: true}) %}

Usage

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);
  });

Enquirer usage

There is no need to register this with [enquirer][], as this is the only prompt type included in enquirer by default.