Skip to main content
Home
This release is 16 versions behind 1.0.25 — the latest version of @std/cli. Jump to latest

@std/cli@1.0.9
Built and signed on GitHub Actions

Works with
This package works with DenoIt is unknown whether this package works with Bun
This package works with Deno
It is unknown whether this package works with Bun
JSR Score94%
Downloads10,077/wk
Publisheda year ago (1.0.9)

Tools for creating interactive command line tools

default

Tools for creating interactive command line tools.

T
Args

The value returned from parseArgs.

f
parseArgs

Take a set of command line arguments, optionally with a set of options, and return an object representing the flags found in the passed arguments.

f
promptSecret

Shows the given message and waits for the user's input. Returns the user's input as string. This is similar to prompt() but it print user's input as * to prevent password from being shown. Use an empty mask if you don't want to show any character.

T
PromptSecretOptions

Options for promptSecret.

f
unicodeWidth

Calculate the physical width of a string in a TTY-like environment. This is useful for cases such as calculating where a line-wrap will occur and underlining strings.

parse-args

Command line arguments parser based on minimist.

T
Args

The value returned from parseArgs.

f
parseArgs

Take a set of command line arguments, optionally with a set of options, and return an object representing the flags found in the passed arguments.

f
promptSecret

Shows the given message and waits for the user's input. Returns the user's input as string. This is similar to prompt() but it print user's input as * to prevent password from being shown. Use an empty mask if you don't want to show any character.

T
PromptSecretOptions

Options for promptSecret.

f
unicodeWidth

Calculate the physical width of a string in a TTY-like environment. This is useful for cases such as calculating where a line-wrap will occur and underlining strings.

f
promptMultipleSelect

Shows the given message and waits for the user's input. Returns the user's selected value as string.

I
PromptMultipleSelectOptions

Options for promptMultipleSelect.

f
promptSelect

Shows the given message and waits for the user's input. Returns the user's selected value as string.

I
PromptSelectOptions

Options for promptSelect.

T
Color

Color options for SpinnerOptions.color.

c
Spinner

A spinner that can be used to indicate that something is loading.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.