Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
denoland/stdWorks with
•JSR Score94%•This package works with DenoIt is unknown whether this package works with Bun

License
•MIT
Downloads25,923/wk
•Publisheda week ago (1.0.30)
Tools for creating interactive command line tools
Functions
f
parseArgs<>(): Args<TArgs, TDoubleDash>
TArgs extends Values<>,
TBooleans,
TStrings,
TCollectable,
TNegatable,
TDefaults,
TAliases
TDoubleDash extends boolean | undefined = undefined,
TBooleans extends BooleanType = undefined,
TStrings extends StringType = undefined,
TCollectable extends Collectable = undefined,
TNegatable extends Negatable = undefined,
TDefaults extends Record<string, unknown> | undefined = undefined,
TAliases extends Aliases<TAliasArgNames, TAliasNames> | undefined = undefined,
TAliasArgNames extends string = string,
TAliasNames extends string = string
args: readonly string[],
options?: ParseOptions<>
TBooleans,
TStrings,
TCollectable,
TNegatable,
TDefaults,
TAliases,
TDoubleDash
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(): string | null
message?: string,
options?: PromptSecretOptions
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.