An open API service indexing awesome lists of open source software.

https://github.com/blackglory/extra-prompts

🌱
https://github.com/blackglory/extra-prompts

library nodejs npm-package typescript

Last synced: 3 months ago
JSON representation

🌱

Awesome Lists containing this project

README

          

# extra-prompts
## Install
```sh
npm install --save extra-prompts
# or
yarn add extra-prompts
```

## API
```ts
interface IOption {
label: string
value: T
}
```

### text
```ts
function text(message: string): Promise
```

### password
```ts
function password(message: string): Promise
```

### invisible
```ts
function invisible(message: string): Promise
```

### confirm
```ts
function confirm(message: string, defaultValue: boolean): Promise
```

### select
```ts
function select(message: string, options: IOption[]): Promise
```

### selectMultiple
```ts
function selectMultiple(message: string, options: IOption[]): Promise
```

### waitForInput
```ts
function waitForInput(
message: string
, predicate?: (key: string) => boolean
): Promise
```