搜索 "codes" 的结果(共 18 个)
strip-color
Strip ANSI color codes from a string. No dependencies.
MIT
ansistyles
Functions that surround a string with ansistyle codes so it prints in style.
string-length
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
MIT
ansicolors
Functions that surround a string with ansicolor codes so it prints in color.
console-control-strings
A library of cross-platform tested terminal/console command strings for doing things like color and cursor positioning. This is a subset of both ansi and vt100. All control codes included work on both Windows & Unix-like OSes, except where noted.
ISC