{"id":16918258,"url":"https://github.com/vito/elm-ansi","last_synced_at":"2025-04-11T16:33:54.183Z","repository":{"id":54224175,"uuid":"45940605","full_name":"vito/elm-ansi","owner":"vito","description":"ANSI stream handling for Elm","archived":false,"fork":false,"pushed_at":"2025-03-30T17:26:24.000Z","size":93,"stargazers_count":8,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T16:32:39.923Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elm","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/vito.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,"zenodo":null}},"created_at":"2015-11-10T21:15:13.000Z","updated_at":"2025-03-30T17:26:23.000Z","dependencies_parsed_at":"2025-04-11T16:32:41.268Z","dependency_job_id":null,"html_url":"https://github.com/vito/elm-ansi","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vito%2Felm-ansi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vito%2Felm-ansi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vito%2Felm-ansi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vito%2Felm-ansi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vito","download_url":"https://codeload.github.com/vito/elm-ansi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248441356,"owners_count":21103978,"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-10-13T19:39:24.681Z","updated_at":"2025-04-11T16:33:54.146Z","avatar_url":"https://github.com/vito.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elm-ansi\n\nANSI text stream handling for Elm.\n\n## Usage\n\n### Parsing a string of ANSI console output\n\nThe `Ansi.parse` function returns a list of `Ansi.Action` types which can be\nused for interpreting escape sequences:\n\n```elm\n\u003e Ansi.parse \"\\u{001b}[1;32mhello\\u{001b}[0m\"\n[SetBold True,SetForeground (Just Green),Print \"hello\",SetForeground Nothing,SetBackground Nothing,SetBold False,SetFaint False,SetItalic False,SetUnderline False,SetBlink False,SetInverted False,SetFraktur False,SetFramed False]\n    : List Ansi.Action\n```\n\nThe `Ansi.parseInto` function calls a helper function while parsing to avoid\nthe intermediate data structure.\n\n### Rendering ANSI console output as HTML\n\nThe `Ansi.Log` module provides a component for incrementally parsing `String`\nchunks and maintaining a `Model` that can be rendered as HTML.\n\nIt exports the usual `init`, `update`, `view` along with `Model` and other\ntypes to assist with rendering, should you want to bring your own `view`\nfunction. A `viewLine` function is also exported should you want to re-use that\naspect within your own view.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvito%2Felm-ansi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvito%2Felm-ansi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvito%2Felm-ansi/lists"}