ansi-aware-terminal-text-utils

Community

Streamline terminal UI table formatting with ANSI-aware text utilities.

Authorruskibeats
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of formatting terminal UI tables correctly, especially when dealing with ANSI escape codes and wide characters.

Core Features & Use Cases

  • ANSI Code Handling: Correctly measures and handles strings with ANSI escape codes for consistent visual display.
  • Wide Character Support: Counts CJK ideographs and emoji as two visual columns for accurate table layout.
  • Utility Functions: Provides functions like visualWidth, truncate, pad, padOnly, and stripAnsi for flexible text manipulation.
  • Use Case: When building a CLI tool or terminal-based application that requires precise text formatting, such as a table renderer or board view.

Quick Start

Use the ansi-aware-terminal-text-utils skill to calculate the visual width of a string containing ANSI codes: visualWidth("Hello\x1b[31mWorld\x1b[0m").

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ansi-aware-terminal-text-utils
Download link: https://github.com/ruskibeats/t1d/archive/main.zip#ansi-aware-terminal-text-utils

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.