{"id":23239155,"url":"https://github.com/cakecatz/ansi-parser","last_synced_at":"2025-07-04T01:05:21.845Z","repository":{"id":36465812,"uuid":"224779113","full_name":"cakecatz/ansi-parser","owner":"cakecatz","description":"Parser for string that include ansi codes.","archived":false,"fork":false,"pushed_at":"2023-01-06T02:19:30.000Z","size":1356,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T18:49:27.937Z","etag":null,"topics":["ansi-codes","ansi-colors","parser","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@cakecatz/ansi-parser","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cakecatz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-29T04:52:42.000Z","updated_at":"2023-03-04T04:56:33.000Z","dependencies_parsed_at":"2023-01-17T01:44:09.411Z","dependency_job_id":null,"html_url":"https://github.com/cakecatz/ansi-parser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cakecatz/ansi-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakecatz%2Fansi-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakecatz%2Fansi-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakecatz%2Fansi-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakecatz%2Fansi-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cakecatz","download_url":"https://codeload.github.com/cakecatz/ansi-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cakecatz%2Fansi-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263427308,"owners_count":23464842,"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":["ansi-codes","ansi-colors","parser","typescript"],"created_at":"2024-12-19T04:22:04.922Z","updated_at":"2025-07-04T01:05:21.794Z","avatar_url":"https://github.com/cakecatz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansi-parser\n\nParser for string that include ansi codes.\n\n## Install\n\n```sh\nnpm i @cakecatz/ansi-parser\n```\n\n## Usage\n\n```ts\nconst { parseAnsi } = require(\"@cakecatz/ansi-parser\");\nconst cells = parseAnsi(\"\\u001b[31mhello\\u001b[39m\");\n```\n\n`cells` will be like this.\n\n```ts\n[\n  {\n    bg: 0, // COLOR_CODES.BLACK\n    fg: 1, // COLOR_CODES.RED\n    content: \"hello\",\n    bold: false,\n    dim: false,\n    inverse: false,\n    italic: false,\n    underline: false\n  }\n];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakecatz%2Fansi-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcakecatz%2Fansi-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcakecatz%2Fansi-parser/lists"}