JSPM

enquirer-prompt-input

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q26031F
  • License MIT

Input prompt plugin for Enquirer. This is the only prompt type included in Enquirer by default and does not need to be registered separately.

Package Exports

  • enquirer-prompt-input

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (enquirer-prompt-input) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

enquirer-prompt-input NPM version NPM downloads

Input prompt plugin for Enquirer. This is included in Enquirer by default and does not need to be registered separately.

Install

Install with npm:

$ npm install --save enquirer-prompt-input

Usage

This is the only prompt type included in enquirer by default, so you don't need to register this with enquirer. The following is only an example of how custom prompts are registered.

var Enquirer = require('enquirer');
var enquirer = new Enquirer();
enquirer.register('input', require('enquirer-prompt-input'));

var questions = [
  {
    type: 'input',
    name: 'first',
    message: 'First name?',
    default: 'Brian'
  },
  {
    type: 'input',
    name: 'last',
    message: 'Last name?',
    default: 'Woodward'
  }
];

enquirer.ask(questions)
  .then(function(answers) {
    console.log(answers)
  });

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)

To generate the readme and API documentation with verb:

$ npm install -g verb verb-generate-readme && verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb-generate-readme, v0.1.30, on August 28, 2016.