{"id":28635561,"url":"https://github.com/chalk/has-ansi-cli","last_synced_at":"2025-12-15T08:09:00.440Z","repository":{"id":34393150,"uuid":"38320505","full_name":"chalk/has-ansi-cli","owner":"chalk","description":"Check if a string has ANSI escape codes","archived":false,"fork":false,"pushed_at":"2021-09-13T18:26:15.000Z","size":12,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-06-05T05:33:40.462Z","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/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":"2015-06-30T16:32:35.000Z","updated_at":"2025-04-20T06:39:52.000Z","dependencies_parsed_at":"2022-09-14T06:01:21.795Z","dependency_job_id":null,"html_url":"https://github.com/chalk/has-ansi-cli","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fhas-ansi-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fhas-ansi-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fhas-ansi-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fhas-ansi-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chalk","download_url":"https://codeload.github.com/chalk/has-ansi-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chalk%2Fhas-ansi-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259063396,"owners_count":22799711,"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":"2025-06-12T17:11:00.765Z","updated_at":"2025-12-15T08:09:00.373Z","avatar_url":"https://github.com/chalk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# has-ansi-cli\n\n\u003e Check if a string has [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)\n\n## Install\n\n```\n$ npm install --global has-ansi-cli\n```\n\n## Usage\n\n```\n$ has-ansi --help\n\n  Usage\n    $ has-ansi \u003ctext\u003e\n    $ echo \u003ctext\u003e | has-ansi\n\n  Example\n    $ ls --color | has-ansi \u0026\u0026 echo 'has ansi'\n\n  Exits with code 0 if input has ANSI escape codes and 1 if not\n```\n\n## Related\n\n- [has-ansi](https://github.com/chalk/has-ansi) - API for this module\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%2Fhas-ansi-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchalk%2Fhas-ansi-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchalk%2Fhas-ansi-cli/lists"}