prompt.js 350 B

12345678910111213141516
  1. 'use strict';
  2. var inquirer = require('inquirer');
  3. /**
  4. * Prompt for user input based on the given Array of `prompts` to perform in
  5. * series, and call `done` callback on completion.
  6. *
  7. * @params {Object[]} prompts
  8. * @params {Function} done
  9. */
  10. module.exports = function prompt() {
  11. inquirer.prompt.apply(inquirer, arguments);
  12. return this;
  13. };