{"id":18310904,"url":"https://github.com/jimschubert/tabitha","last_synced_at":"2026-02-28T14:04:26.914Z","repository":{"id":139902470,"uuid":"419523855","full_name":"jimschubert/tabitha","owner":"jimschubert","description":"tabitha is a no-frills tabular formatter for the terminal.","archived":false,"fork":false,"pushed_at":"2023-01-15T17:24:25.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T12:11:12.613Z","etag":null,"topics":["go","golang","tables"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/jimschubert/tabitha","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jimschubert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"jimschubert","patreon":"jimschubert"}},"created_at":"2021-10-20T23:54:58.000Z","updated_at":"2023-02-07T01:40:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"67b45848-4071-4b40-9516-e3740ee6e502","html_url":"https://github.com/jimschubert/tabitha","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jimschubert/tabitha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Ftabitha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Ftabitha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Ftabitha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Ftabitha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimschubert","download_url":"https://codeload.github.com/jimschubert/tabitha/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Ftabitha/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262465785,"owners_count":23315641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","tables"],"created_at":"2024-11-05T16:15:50.296Z","updated_at":"2026-02-28T14:04:21.889Z","avatar_url":"https://github.com/jimschubert.png","language":"Go","funding_links":["https://github.com/sponsors/jimschubert","https://patreon.com/jimschubert"],"categories":[],"sub_categories":[],"readme":"# tabitha\n\ntabitha is a no-frills tabular formatter for the terminal.\n\n[![Apache 2.0 License](https://img.shields.io/badge/License-Apache%202.0-blue)](./LICENSE)\n![Go Version](https://img.shields.io/github/go-mod/go-version/jimschubert/tabitha)\n[![Go Build](https://github.com/jimschubert/tabitha/actions/workflows/build.yml/badge.svg)](https://github.com/jimschubert/tabitha/actions/workflows/build.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/jimschubert/tabitha)](https://goreportcard.com/report/github.com/jimschubert/tabitha)\n\n## Features\n\n* Supports padding output to the longest _display_ text, honoring ANSI colors\n* Simple API to add a single header and 0..n lines\n* Add \"spacer\" lines anywhere in the table. Character output is automatically calculated based on width of other text.\n* Customize line separator, padding character, disable padding or honoring ansi\n\n## Build/Test\n\n```shell\ngo test -v -race -cover ./...\n```\n\n## Example\n\nThe following example demonstrates usage (sans error handling).\n```\ntt := tabitha.NewWriter()\ntt.Header(\"First\", \"Second\", \"Third\", \"Fourth\")\ntt.SpacerLine()\ntt.AddLine(\"I'm first\", \"I'm second\", \"I'm third\", \"I'm fourth\")\ntt.SpacerLine()\ntt.WriteTo(os.Stdout)\n```\n\n## Why not text/tabwriter?\n\nThis is a little different from `text/tabwriter`; a main difference being that tabwriter assumes all runes are the same size and includes ANSI codes in width calculations while `tabitha` does not.\n\nIn `tabitha`, rune width is evaluated using `utf8.RuneCountInString`. When ANSI support is enabled, `tabitha` will extract non-ANSI text (the \"displayable text\") using regex. Since `tabitha` collects all tabular text before writing out to a target `io.Writer`, it is not expected to perform as well as `tabwriter`.\n\n## License\n\nThis project is [licensed](./LICENSE) under Apache 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimschubert%2Ftabitha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimschubert%2Ftabitha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimschubert%2Ftabitha/lists"}