cli-table-formatter

Solid

Generate table formatters for structured CLI output with column alignment, borders, and responsive sizing.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# CLI Table Formatter Generate table formatters for structured CLI output. ## Capabilities - Create table formatters with various styles - Configure column alignment and width - Implement responsive table sizing - Support Unicode borders - Handle multiline cells - Generate table utilities ## Usage Invoke this skill when you need to: - Display tabular data in CLI - Create formatted list output - Configure column widths - Support various border styles ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | language | string | Yes | Target language | | style | string | No | Border style (simple, unicode, markdown) | | features | array | No | Required features | ## Generated Patterns ### TypeScript Table Formatter ```typescript import chalk from 'chalk'; export interface TableColumn { key: string; header: string; width?: number; align?: 'left' | 'center' | 'right'; format?: (value: any) => string; } export interface TableOptions { columns: TableColumn[]; borderStyle?: 'simple' | 'unicode' | 'none' | 'markdown'; headerColor?: (text: string) => string; maxWidth?: number; } const borders = { simple: { top: '-', bottom: '-', left: '|', right: '|', topLeft: '+', topRight: '+', bottomLeft: '+', bottomRight: '+', horizontal: '-', vertical: '|', cross: '+', }, unicode: { top: '─', bottom: '─', left: '│', right: '│', topLeft: '┌', topRight: '┐', bottomLeft: '└', bottomRight: '┘', h...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills