{"id":22710583,"url":"https://github.com/smallhelm/ansi-style-parser","last_synced_at":"2025-08-07T15:31:21.877Z","repository":{"id":57180453,"uuid":"57143166","full_name":"smallhelm/ansi-style-parser","owner":"smallhelm","description":"Parse ansi colors and styles","archived":false,"fork":false,"pushed_at":"2023-03-08T04:37:50.000Z","size":18,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-10T11:33:16.743Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/smallhelm.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":"2016-04-26T16:13:14.000Z","updated_at":"2023-10-10T12:49:15.000Z","dependencies_parsed_at":"2024-06-18T18:39:01.091Z","dependency_job_id":"4ff4777b-01b2-424c-a1a5-e49ec04d73cd","html_url":"https://github.com/smallhelm/ansi-style-parser","commit_stats":{"total_commits":23,"total_committers":3,"mean_commits":7.666666666666667,"dds":"0.13043478260869568","last_synced_commit":"6c7f9e87f4be6be7510e42e80a55cfb61f44150e"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallhelm%2Fansi-style-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallhelm%2Fansi-style-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallhelm%2Fansi-style-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallhelm%2Fansi-style-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smallhelm","download_url":"https://codeload.github.com/smallhelm/ansi-style-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229057638,"owners_count":18013289,"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-12-10T12:10:40.245Z","updated_at":"2024-12-10T12:10:40.889Z","avatar_url":"https://github.com/smallhelm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansi-style-parser\n\nParse ANSI colors and styles\n\n## Install\n`npm install ansi-style-parser`\n\n## Usage\n\n```js\nvar c = require('chalk');\nvar parser = require('ansi-style-parser');\n\nvar txt = 'Some ';\ntxt += c.bold.green('styled ' + c.underline.bgBlack('text') + c.red('!'));\n\nconsole.log(parser(txt));\n```\nOutput:\n```js\n[ { styles: [],\n    text: 'Some ' },\n\n  { styles: [ 'bold', 'green' ],\n    text: 'styled ' },\n\n  { styles: [ 'bold', 'green', 'underline', 'bgBlack' ],\n    text: 'text' },\n\n  { styles: [ 'bold', 'red' ],\n    text: '!' } ]\n```\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallhelm%2Fansi-style-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallhelm%2Fansi-style-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallhelm%2Fansi-style-parser/lists"}