@qui-cli Plugin: Standardized Chalk colors for CLI output
npm install @qui-cli/colors@qui-cli Plugin: Standardized Chalk colors for CLI output


``sh`
npm install @qui-cli/colors
`ts
import { Colors } from '@qui-cli/colors';
// use Colors
console.log(
This is a ${Colors.value('value')} and a ${Colors.quotedValue('"quoted value"')}.`
);
Colors provides no configuration options.
Colors adds no user-configurable command line options.
Colors requires no initialization
stylesA literal value (e.g. 3 or true);
A quoted value (e.g. "hello world"). Quotation marks should be included in the text argument.
A regular expression value (e/g /.+/). Expression delimiters (/) should be included in the text argument.
A URL value (e.g. https://example.com or ./path/to/file).
A file or URL path (e.g. ../../path/to/file).
Highlight the filename by passing a second argument:
`ts`
Colors.path('path/to/filename', Colors.value);
> path/to/filename
An error message (e.g. Bad things happened!).
A shell command (e.g. echo "hello world").
Highlight the command name by passing a second argument:
`ts`
Colors.command('echo hello world', Colors.keyword);
> echo hello world
A keyword (e.g. a shell command), as in:
`ts${Colors.keyword('echo')} "hello world"
console.log(Colors.command());`
The name of an option argument (e.g. --my-fancy-option), as in:
`ts${Colors.optionArg('--my-fancy-option')} ${Colors.quotedValue('"pinkies out"')}
console.log(
`
);
The name of a flag argument (e.g. --no-errors-please).
The name of a positional argument (e.g. arg0`).