{"id":21442490,"url":"https://github.com/cryptex-github/ansi-to-html","last_synced_at":"2025-03-17T00:46:42.666Z","repository":{"id":109469466,"uuid":"506824550","full_name":"Cryptex-github/ansi-to-html","owner":"Cryptex-github","description":"Fork of https://github.com/Aloso/to-html","archived":false,"fork":false,"pushed_at":"2022-06-24T00:41:57.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T10:43:32.420Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cryptex-github.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2022-06-23T23:59:07.000Z","updated_at":"2022-06-23T23:59:37.000Z","dependencies_parsed_at":"2023-05-17T22:00:31.559Z","dependency_job_id":null,"html_url":"https://github.com/Cryptex-github/ansi-to-html","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptex-github%2Fansi-to-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptex-github%2Fansi-to-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptex-github%2Fansi-to-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptex-github%2Fansi-to-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cryptex-github","download_url":"https://codeload.github.com/Cryptex-github/ansi-to-html/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955723,"owners_count":20374372,"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":[],"created_at":"2024-11-23T01:54:31.556Z","updated_at":"2025-03-17T00:46:42.653Z","avatar_url":"https://github.com/Cryptex-github.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansi-to-html\n\n[Documentation](https://docs.rs/crate/ansi-to-html)\n\nRust library to convert a string that can contain [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) to HTML.\n\n## ANSI support\n\nThis crate currently supports SGR parameters (text style and colors).\nThe supported styles are:\n\n- bold\n- italic\n- underlined\n- crossed out\n- faint\n- foreground and background colors: 3-bit, 4-bit, 8-bit, truecolor (24-bit)\n\n**Not** supported SGR parameters (note that most of these are niche features\nand rarely supported by terminals):\n\n- slow/rapid blink\n- reverse video\n- conceal\n- alternative fonts\n- fraktur\n- doubly underlined\n- proportional spacing\n- framed\n- encircled\n- overlined\n- underline color (not in standard)\n- ideogram attributes\n- superscript, subscript (not in standard)\n- bright foreground/background color (not in standard)\n\nAll unsupported ANSI escape codes are stripped from the output.\n\nIt should be easy to add support for more styles, if there's a straightforward HTML\nrepresentation. If you need a different style (e.g. doubly underlined), file an issue.\n\n## Features\n\nWhen the  `lazy-init` feature is enabled, regexes are lazily initialized, which is more efficient if you want to convert A LOT of strings. The performance difference has not been tested.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptex-github%2Fansi-to-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptex-github%2Fansi-to-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptex-github%2Fansi-to-html/lists"}