supports-color
Detect whether a terminal supports color
Detect whether a terminal supports color
Terminal string styling done right
Regular expression for matching ANSI escape codes
Strip ANSI escape codes from a string
ANSI escape codes for styling strings in the terminal
Wordwrap a string with ANSI escape codes
ANSI escape codes for manipulating the terminal
Toggle the CLI cursor
Gracefully restore the CLI cursor on exit
A collection of common interactive command line user interfaces.
Slice a string with ANSI escape codes
Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).
Check if a string has ANSI escape codes
the tty module from node core for browsers
Reliably get the terminal window size (columns & rows)
Stylish, intuitive and user-friendly prompt system. Fast and lightweight enough for small projects, powerful and extensible enough for the most advanced use cases.
Reliable way to get the height and width of terminal/console, since it's not calculated or updated the same way on all platforms, environments and node.js versions.
Check if stdout or stderr is interactive
The color gray, in ansi.
The color red, in ansi.