Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Tools for creating interactive command line tools
default
Tools for creating interactive command line tools.
The value returned from 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.
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.
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.
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.
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.
Shows the given message and waits for the user's input. Returns the user's selected value as string.
Shows the given message and waits for the user's input. Returns the user's selected value as string.