GithubHelp home page GithubHelp logo

isabella232 / inquirer-helpers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from widgetworks/inquirer-helpers

0.0 0.0 0.0 39 KB

Collection of helpers for Inquirer.

License: MIT License

TypeScript 100.00%

inquirer-helpers's Introduction

Inquirer Helpers

Collection of helpers for Inquirer.

Install

$ npm install --save inquirer-helpers

API

Helpers.FULLSCREEN = true

Showing as many lines as possible.

Helpers.PAGE_SIZE = 10

Number of rows displayed.

Helpers.CLI_WIDTH = 80

Default CLI width if it cannot be properly detected.

Helpers.confirm ( message: string, fallback: boolean = false )

Prompt for a confirmation.

Helpers.noYes ( message: string )

Prompt for a confirmation, giving No and Yes as possible options.

Helpers.yesNo ( message: string )

Prompt for a confirmation, giving Yes and No as possible options.

Helpers.input ( message: string, fallback? )

Prompt for a string input.

Helpers.list ( message: string, list, string[], fallback? )

Prompt to pick a value from the list.

Auto-truncates values.

Helpers.checkbox ( message: string, list, string[], fallback? )

Prompt to pick one or more values from the list.

Auto-truncates values.

Helpers.table ( message: string, table: string[][], values: any[], colors: string[] = [], fallback? )

Prompt to pick a value from a list, formatted as a table.

Supports custom columns, colors and support for any terminal width.

License

MIT © Fabio Spampinato

inquirer-helpers's People

Contributors

fabiospampinato avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.