console
# 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`
```bash
scripts/script.sh intro
```
Overview of console output — streams, TTY detection, output principles.
### `ansi`
```bash
scripts/script.sh ansi
```
ANSI escape codes — colors, styles, cursor control, 256-color and truecolor.
### `logging`
```bash
scripts/script.sh logging
```
Log levels and best practices — DEBUG, INFO, WARN, ERROR, FATAL.
### `browser`
```bash
scripts/script.sh browser
```
Browser console API — log, table, group, time, profile, assert.
### `node`
```bash
scripts/script.sh node
```
Node.js console and util — inspect, format, debug module, chalk.
### `cli`
```bash
scripts/script.sh cli
```
CLI output patterns — progress bars, spinners, tables, prompts.
### `debug`
```bash
scripts/script.sh debug
```
Debugging techniques — breakpoints, stack traces, conditional logging.
### `tools`
```bash
scripts/script.sh tools
```
Console tools and libraries — chalk, winston, pino, log4j, structlog.
### `help`
```bash
scripts/script.sh help
```
### `version`
```bash
scripts/script.sh version
```
## Configuration
| Variable | Description |
|----------|-------------|
| `CONSOLE_DIR` | Data directory (default: ~/.console/) |
---
*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*
标签
skill
ai