# @qui-cli/colors

> @qui-cli Plugin: Standardized Chalk colors for CLI output

Latest version **3.2.5** (published 2026-08-01) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @qui-cli/colors
pnpm add @qui-cli/colors
yarn add @qui-cli/colors
bun add @qui-cli/colors
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.2.5 |
| Published | 2026-08-01 |
| First published | 2025-08-02 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 47.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Seth Battis |
| Maintainers | battis |

## Links

- npm: https://www.npmjs.com/package/@qui-cli/colors
- Repository: https://github.com/battis/qui-cli
- Homepage: https://github.com/battis/qui-cli/tree/main/packages/colors#readme
- npm.io page: https://npm.io/package/@qui-cli/colors

## Dependencies (1)

- [chalk](https://npm.io/package/chalk.md) ^5.6.2

## Recent versions

- 3.2.5 (latest) — 2026-08-01
- 3.2.5-0 (prerelease) — 2026-07-08
- 3.2.4 — 2026-03-10
- 3.2.3 — 2026-01-18
- 3.2.2 — 2026-01-15
- 3.2.1 — 2026-01-02
- 3.2.0 — 2025-12-25
- 3.1.1 — 2025-12-19
- 3.1.0 — 2025-11-07
- 3.0.1 — 2025-08-04
- 3.0.0 — 2025-08-02

## README

# @qui-cli/colors

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

[![npm version](https://badge.fury.io/js/@qui-cli%2Fcolors.svg)](https://npmjs.com/package/@qui-cli/colors)
[![Module type: ESM](https://img.shields.io/badge/module%20type-esm-brightgreen)](https://nodejs.org/api/esm.html)

## Install

```sh
npm install @qui-cli/colors
```

If developing a reusable plugin:

```sh
npm install --save-peer  @qui-cli/colors@>=3.2
```

## Usage

```ts
import { Colors } from '@qui-cli/colors';

// use Colors
console.log(
  `This is a ${Colors.value('value')} and a ${Colors.quotedValue('"quoted value"')}.`
);
```

## Configuration

`Colors` provides no configuration options.

## Options

`Colors` adds no user-configurable command line options.

## Initialization

`Colors` requires no initialization

## API: `console.log` styles

### `value(text)`

A literal value (e.g. `3` or `true`);

### `quotedValue(text)`

A quoted value (e.g. `"hello world"`). Quotation marks should be included in the `text` argument.

### `regexpValue(text)`

A regular expression value (e/g `/.+/`). Expression delimiters (`/`) should be included in the `text` argument.

### `url(text)`

A URL value (e.g. `https://example.com` or `./path/to/file`).

### `path(text, higlight = (v) => v)`

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);
```

> <code style="color:skyblue">path/to/<span style="color:yellow">filename</span></code>

### `error(text)`

An error message (e.g. `Bad things happened!`).

## API: Node styles

### `command(text)`

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);
```

> <code style="color:magenta"><b>echo</b> hello world</code>

### `keyword(text)`

A keyword (e.g. a shell command), as in:

```ts
console.log(Colors.command(`${Colors.keyword('echo')} "hello world"`));
```

## API: man page styles

### `optionArg(text)`

The name of an option argument (e.g. `--my-fancy-option`), as in:

```ts
console.log(
  `${Colors.optionArg('--my-fancy-option')} ${Colors.quotedValue('"pinkies out"')}`
);
```

### `flagArg(text)`

The name of a flag argument (e.g. `--no-errors-please`).

### `positionalArg(text)`

The name of a positional argument (e.g. `arg0`).

---
_Source: https://npm.io/package/@qui-cli/colors · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
