Console — Console Output & Debugging Reference
Quick-reference skill for console output formatting, logging systems, ANSI escape codes, and debugging techniques.
When to Use
- Formatting terminal output with colors and styles
- Implementing a logging system with proper levels
- Debugging with browser/Node.js console methods
- Building CLI tools with professional output
- Understanding ANSI escape codes and terminal capabilities
Commands
intro
scripts/script.sh intro
Overview of console output — streams, TTY detection, output principles.
ansi
scripts/script.sh ansi
ANSI escape codes — colors, styles, cursor control, 256-color and truecolor.
logging
scripts/script.sh logging
Log levels and best practices — DEBUG, INFO, WARN, ERROR, FATAL.
browser
scripts/script.sh browser
Browser console API — log, table, group, time, profile, assert.
node
scripts/script.sh node
Node.js console and util — inspect, format, debug module, chalk.
cli
scripts/script.sh cli
CLI output patterns — progress bars, spinners, tables, prompts.
debug
scripts/script.sh debug
Debugging techniques — breakpoints, stack traces, conditional logging.
tools
scripts/script.sh tools
Console tools and libraries — chalk, winston, pino, log4j, structlog.
help
scripts/script.sh help
version
scripts/script.sh version
Configuration
| Variable | Description |
|---|---|
CONSOLE_DIR |
Data directory (default: ~/.console/) |
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com