Exact terminal color wrappers

@stackline/ansicolors

Keep all 32 historical foreground and background methods with accurate types, modern module entry points, and no runtime dependencies.

npm install @stackline/ansicolors
v1.0.1Node 12+TypeScript 3.9-7.0Zero runtime dependencies

Runs the production browser bundle

ANSI preview

Stackline ready
Raw ANSI output
green foreground, no background

Lowest-change migration

Keep existing imports

Alias the maintained package under the original dependency key.

npm install ansicolors@npm:@stackline/ansicolors@^1.0.0
const colors = require('ansicolors')

Public contract

Fixed escape sequences

Full reference
SurfacePurposeReset
red(text)Standard foreground wrapper39m
brightCyan(text)Bright foreground wrapper39m
bgBlue(text)Standard background wrapper49m
open / closeExpose captured SGR stringsStrings

Release evidence

Every byte is measured

32
foreground and background methods
1,637
differential comparisons
100%
core coverage
174
Cardinal downstream assertions

Portable reference

Human and machine-readable docs

Exact method names, escape behavior, types, migration, and security policy remain readable without client rendering.