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/ansicolorsv1.0.1Node 12+TypeScript 3.9-7.0Zero runtime dependencies
Runs the production browser bundle
ANSI preview
Stackline ready
Raw ANSI output
Lowest-change migration
Keep existing imports
Alias the maintained package under the original dependency key.
npm install ansicolors@npm:@stackline/ansicolors@^1.0.0const colors = require('ansicolors')Public contract
Fixed escape sequences
| Surface | Purpose | Reset |
|---|---|---|
red(text) | Standard foreground wrapper | 39m |
brightCyan(text) | Bright foreground wrapper | 39m |
bgBlue(text) | Standard background wrapper | 49m |
open / close | Expose captured SGR strings | Strings |
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.