{"id":13583281,"url":"https://github.com/chalk/strip-ansi-stream","last_synced_at":"2025-06-12T17:11:02.727Z","repository":{"id":52858165,"uuid":"104165193","full_name":"chalk/strip-ansi-stream","owner":"chalk","description":"Strip ANSI escape codes","archived":false,"fork":false,"pushed_at":"2021-09-13T18:30:19.000Z","size":6,"stargazers_count":36,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-05T05:33:40.794Z","etag":null,"topics":["ansi","ansi-escape-codes","color","command-line","console","javascript","nodejs","streaming","strip-ansi","terminal"],"latest_commit_sha":null,"homepage":"","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/chalk.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}},"created_at":"2017-09-20T04:22:59.000Z","updated_at":"2025-04-20T06:39:14.000Z","dependencies_parsed_at":"2022-08-23T00:30:54.214Z","dependency_job_id":null,"html_url":"https://github.com/chalk/strip-ansi-stream","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/chalk/strip-ansi-stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fstrip-ansi-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fstrip-ansi-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fstrip-ansi-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fstrip-ansi-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chalk","download_url":"https://codeload.github.com/chalk/strip-ansi-stream/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fstrip-ansi-stream/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259509474,"owners_count":22868837,"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","ansi-escape-codes","color","command-line","console","javascript","nodejs","streaming","strip-ansi","terminal"],"created_at":"2024-08-01T15:03:22.602Z","updated_at":"2025-06-12T17:11:02.697Z","avatar_url":"https://github.com/chalk.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# strip-ansi-stream\n\n\u003e Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)\n\n## Install\n\n```\n$ npm install strip-ansi-stream\n```\n\n## Usage\n\n```js\nimport stripAnsiStream from 'strip-ansi-stream';\n\nconst stream = stripAnsiStream();\n\nstream.on('data', data =\u003e {\n\tconsole.log(data);\n\t//=\u003e 'Unicorn'\n\t//=\u003e 'bar'\n})\n\nstream.write('\\u001B[4mUnicorn\\u001B[0m');\nstream.end('\\u001B[0;33;49;3;9;4mbar\\u001B[0m');\n```\n\n## API\n\n### stripAnsiStream()\n\nReturns a [`Transform` stream](https://nodejs.org/api/stream.html#stream_class_stream_transform) that strips ANSI escape codes.\n\n## Related\n\n- [strip-ansi](https://github.com/chalk/strip-ansi) - Non-streaming version of this module\n- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes\n- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes\n- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchalk%2Fstrip-ansi-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchalk%2Fstrip-ansi-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchalk%2Fstrip-ansi-stream/lists"}