0.2.2 • Published 4 months ago

extra-prompts v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

extra-prompts

Install

npm install --save extra-prompts
# or
yarn add extra-prompts

API

interface IOption<T> {
  label: string
  value: T
}

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

function select<T>(message: string, options: IOption<T>[]): Promise<T>

selectMultiple

function selectMultiple<T>(message: string, options: IOption<T>[]): Promise<T[]>

waitForInput

function waitForInput(
  message: string
, predicate?: (key: string) => boolean
): Promise<string>
0.2.1

4 months ago

0.2.2

4 months ago

0.2.0

8 months ago

0.1.6

2 years ago

0.1.4

3 years ago

0.1.5

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.3

3 years ago

0.1.0

3 years ago