{"id":35637773,"url":"https://github.com/badele/splitans","last_synced_at":"2026-03-09T10:01:11.478Z","repository":{"id":326956489,"uuid":"1106578907","full_name":"badele/splitans","owner":"badele","description":"Parse ANSI/ASCII file and split text and CSI Sequence","archived":false,"fork":false,"pushed_at":"2026-03-05T10:52:23.000Z","size":618,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-05T13:58:31.343Z","etag":null,"topics":["ansi","ansi-art","ansi-codes","ascii","ascii-art","bbs","command-line-tool","retro","retrocomputing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/badele.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-29T14:33:04.000Z","updated_at":"2026-03-05T10:52:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/badele/splitans","commit_stats":null,"previous_names":["badele/splitans"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/badele/splitans","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badele%2Fsplitans","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badele%2Fsplitans/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badele%2Fsplitans/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badele%2Fsplitans/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badele","download_url":"https://codeload.github.com/badele/splitans/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badele%2Fsplitans/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30290885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ansi","ansi-art","ansi-codes","ascii","ascii-art","bbs","command-line-tool","retro","retrocomputing"],"created_at":"2026-01-05T10:56:30.543Z","updated_at":"2026-03-09T10:01:11.381Z","avatar_url":"https://github.com/badele.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo](./docs/logo.png)\n\nSplitans is a tokenization tool that parses ANSI files and separates ANSI\nsequences from text. You can save the stdout output to a file with the `.neo`\nextension. The `neotex` format is simple: text content on the left, ANSI\nsequences on the right, separated by `|`. The `neotex` format allows you to view\nthe content without requiring an ANSI terminal.\n\nIt is also possible to export to various formats, such as ANSI, table, stats or\nJSON.\n\n## Installation\n\n```bash\nexport PATH=\"$HOME/go/bin:$PATH\"\ngo install github.com/badele/splitans\n```\n\n## Usage\n\nBy default, `splitans` converts UTF-8 ANSI to UTF-8 `neotex` format and outputs\nto stdout.\n\n```bash\n# Convert 16colors to UTF-8 ANSI (terminal)\ncurl -s https://16colo.rs/pack/1990/raw/WWANS157.ANS | splitans -e cp437 -F ansi\n\n# Convert 16colors to UTF-8 ANSI with true VGA colors (disable terminal theme)\ncurl -s https://16colo.rs/pack/1990/raw/WWANS157.ANS | splitans -e cp437 -F ansi -V\n\n# Convert 16colors legacy ANSI to neotex\ncurl -s https://16colo.rs/pack/1990/raw/WWANS157.ANS | splitans -e cp437 \u003e /tmp/WWANS157.neo\nless -S /tmp/WWANS157.neo\n\n# Convert neotex to ANSI\nsplitans /tmp/WWANS157.neo -f neotex -F ansi\nsplitans /tmp/WWANS157.neo -f neotex -E cp437 -F ansi\n\n# Convert 16colors to UTF-8 plaintext\nsplitans /tmp/WWANS157.neo -f neotex -F plaintext\ncat /tmp/WWANS157.neo | colrm 80\n\n# Copy ANSI to termbin.com\ncat /tmp/WWANS157.neo | splitans -f neotex -F ansi | nc termbin.com 9999\ncurl -s https://termbin.com/w7sp\n\n# Display ANSI tokens in other formats\ncurl -s https://16colo.rs/pack/1990/raw/WWANS157.ANS | splitans -e cp437 -F json\ncurl -s https://16colo.rs/pack/1990/raw/WWANS157.ANS | splitans -e cp437 -F table\ncurl -s https://16colo.rs/pack/1990/raw/WWANS157.ANS | splitans -e cp437 -F stats\n```\n\n## Neotex Metadata\n\nMetadata entries live in the sequence column and start with `!` (for example\n`!V1.2.0`, `!TW73/80`, `!NL42`, or SAUCE labels like `!STTitle`). Use the short\nform `!KEYvalue` when the value has no separators, and the protected form\n`!KEY\u003cvalue\u003e` when it contains spaces or characters such as `;`, `,`, or `:`.\nMetadata values must not contain `\u003c` or `\u003e`; those are rejected on import.\n\n## Output Examples\n\nHere are the results of the `splitans` commands, in order:\n\n- The `neotex` format\n- The 16-color ANSI format (uses the terminal theme)\n- The true color ANSI format (overrides the terminal theme)\n\n![Outputs comparisons](./comparison.png)\n\n## Miscellaneous\n\n#### Convert all ANS files to neotex\n\n```bash\n# Convert one ANSI file to neotex\njust neotex-from-ansi \"\u003cFILENAME\u003e\"\n\n# Convert all *.ANS files to neotex\njust neotex-all-delete \"\u003cPATH\u003e\"\njust neotex-all-from-ansi \"\u003cPATH\u003e\"\n```\n\n## Sources\n\n- Resources\n  - https://16colo.rs\n  - https://wezterm.org/escape-sequences.html#graphic-rendition-sgr\n  - https://vt100.net/docs/vt510-rm/chapter4.html\n  - https://invisible-island.net/xterm/ctlseqs/ctlseqs.html\n  - https://ecma-international.org/wp-content/uploads/ECMA-48_5th_edition_june_1991.pdf\n- Font\n  - https://int10h.org/oldschool-pc-fonts/fontlist/font?toshibasat_8x14\n- Logo Font\n  - https://n0namen0.github.io/CODEF_Ansi_Logo_Maker/ (YAZOOX)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadele%2Fsplitans","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadele%2Fsplitans","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadele%2Fsplitans/lists"}