JSPM

inquirer-loop

0.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3174
  • Score
    100M100P100Q159931F
  • License MIT

Inquirer loop prompt

Package Exports

  • inquirer-loop

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 (inquirer-loop) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Inquirer Loop

Package Travis GitHub

Inquirer loop prompt


Installation

npm install --save inquirer-loop

Usage

inquirer.registerPrompt("loop", require("inquirer-loop")(inquirer));

inquirer.prompt({
    type: "loop",
    name: "items",
    message: "Add another item?",
    questions: [
        {
            type: "input",
            name: "key",
            message: "Enter item key",
        },
        {
            type: "input",
            name: "value",
            message: "Enter item value",
        },
    ],
});

License

This project is licensed under the MIT license.
Copyright (c) KoLiBer (koliberr136a1@gmail.com)