{"id":13447755,"url":"https://github.com/chalk/strip-ansi","last_synced_at":"2025-12-12T03:23:38.892Z","repository":{"id":12365136,"uuid":"15014856","full_name":"chalk/strip-ansi","owner":"chalk","description":"Strip ANSI escape codes from a string","archived":false,"fork":false,"pushed_at":"2025-01-19T08:09:21.000Z","size":43,"stargazers_count":414,"open_issues_count":2,"forks_count":39,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-05-06T00:08:39.711Z","etag":null,"topics":[],"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":".github/funding.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/security.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["sindresorhus","Qix-"],"tidelift":"npm/strip-ansi"}},"created_at":"2013-12-07T23:28:59.000Z","updated_at":"2025-05-03T23:35:35.000Z","dependencies_parsed_at":"2025-04-28T11:52:04.510Z","dependency_job_id":"09d11218-f0c4-4eaf-a193-84d93c1c3a5c","html_url":"https://github.com/chalk/strip-ansi","commit_stats":null,"previous_names":["sindresorhus/strip-ansi"],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fstrip-ansi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fstrip-ansi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fstrip-ansi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fstrip-ansi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chalk","download_url":"https://codeload.github.com/chalk/strip-ansi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253342299,"owners_count":21893558,"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-07-31T05:01:26.108Z","updated_at":"2025-12-12T03:23:38.822Z","avatar_url":"https://github.com/chalk.png","language":"JavaScript","funding_links":["https://github.com/sponsors/sindresorhus","https://github.com/sponsors/Qix-","https://tidelift.com/funding/github/npm/strip-ansi"],"categories":["JavaScript","模块","Modules"],"sub_categories":["String"],"readme":"# strip-ansi\n\n\u003e Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string\n\n\u003e [!NOTE]\n\u003e Node.js has this built-in now with [`stripVTControlCharacters`](https://nodejs.org/api/util.html#utilstripvtcontrolcharactersstr). The benefit of this package is consistent behavior across Node.js versions and faster improvements. The Node.js version is actually based on this package.\n\n## Install\n\n```sh\nnpm install strip-ansi\n```\n\n## Usage\n\n```js\nimport stripAnsi from 'strip-ansi';\n\nstripAnsi('\\u001B[4mUnicorn\\u001B[0m');\n//=\u003e 'Unicorn'\n\nstripAnsi('\\u001B]8;;https://github.com\\u0007Click\\u001B]8;;\\u0007');\n//=\u003e 'Click'\n```\n\n## Related\n\n- [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module\n- [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - 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\n## Maintainers\n\n- [Sindre Sorhus](https://github.com/sindresorhus)\n- [Josh Junon](https://github.com/qix-)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchalk%2Fstrip-ansi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchalk%2Fstrip-ansi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchalk%2Fstrip-ansi/lists"}