0.1.6 • Published 11 months ago
extra-prompts v0.1.6
extra-prompts
Install
npm install --save extra-prompts
# or
yarn add extra-prompts
API
text
function text(message: string): Promise<string>
password
function password(message: string): Promise<string>
invisible
function invisible(message: string): Promise<string>
confirm
function confirm(message: string, defaultValue: boolean): Promise<boolean>
select
interface IOption<T> {
label: string
value: T
}
function select<T>(message: string, options: IOption<T>[]): Promise<T>
waitForInput
function waitForInput(
message: string
, predicate?: (key: string) => boolean
): Promise<string>