Collection of helpers for Inquirer.
$ npm install --save inquirer-helpers
Showing as many lines as possible.
Number of rows displayed.
Default CLI width if it cannot be properly detected.
Prompt for a confirmation.
Prompt for a confirmation, giving No
and Yes
as possible options.
Prompt for a confirmation, giving Yes
and No
as possible options.
Prompt for a string input.
Prompt to pick a value from the list.
Auto-truncates values.
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.
MIT © Fabio Spampinato