index.js
function promptAsync(prompts) {
  return new Promise(function(resolve, reject) {
    parent.prompt.call(parent, prompts, function(answers) {
      resolve(answers)
    });
  });
}
function promptAsync(prompts) {
  return new Promise(function(resolve, reject) {
    parent.prompt.call(parent, prompts, function(answers) {
      resolve(answers)
    });
  });
}
function promptAsync ( prompts ) { return new Promise ( function ( resolve , reject ) { parent . prompt . call ( parent , prompts , function ( answers ) { resolve ( answers ) } ) ; } ) ; }
Asynchronous prompt function that returns a Promise

@param prompts
@returns {Promise}
Asynchronous prompt function that returns a Promise