npm · npm:has-ansi
has-ansi active
Check if a string has ANSI escape codes
The latest stable version of has-ansi is 6.0.2, published on 2025-09-08. Verified by Vigia on 2026-11-12.
| Latest stable version | 6.0.2 |
|---|---|
| Published | 2025-09-08 15:08:53 UTC |
| Install | npm install has-ansi@latest |
| Requires (engines) | {"node":">=18"} |
| Peer dependencies | — |
| Dist-tags | latest: 6.0.2 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 13:59:42 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Maintenance
| Activity | slowing down |
|---|---|
| Last stable release | 2025-09-08 15:08:53 UTC · 430 days ago |
| Stable releases in the last 12 months | 0 |
| Published versions | 13 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
6.0.2 | 2025-09-08 15:08:53 UTC |
6.0.0 | 2024-07-10 23:46:34 UTC |
5.0.1 | 2021-09-13 18:12:17 UTC |
5.0.0 | 2021-04-16 07:27:11 UTC |
4.0.1 | 2021-02-26 09:20:09 UTC |
4.0.0 | 2019-09-10 19:30:39 UTC |
3.0.0 | 2017-06-20 19:33:02 UTC |
2.0.0 | 2015-06-30 16:17:34 UTC |
1.0.3 | 2015-02-22 09:19:28 UTC |
1.0.2 | 2015-02-16 17:54:27 UTC |
1.0.1 | 2014-12-28 11:16:06 UTC |
1.0.0 | 2014-08-13 19:31:02 UTC |
0.1.0 | 2014-06-14 19:40:55 UTC |
Showing the 13 most recent of 13 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
node 16 | 5.0.1 |
node 18 | 6.0.2 |
node 20 | 6.0.2 |
node 22 | 6.0.2 |
node 24 | 6.0.2 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of has-ansi?
The latest stable version of has-ansi is 6.0.2, published on 2025-09-08. Verified by Vigia on 2026-11-12.
How do I install the latest version of has-ansi?
Run npm install has-ansi@latest. The latest stable version is 6.0.2 (verified 2026-11-12).
Is has-ansi deprecated?
No. has-ansi is not marked as deprecated in the registry.
Which Node.js version does has-ansi require?
has-ansi 6.0.2 declares this requirement: {"node":">=18"}.
Does has-ansi 6.0.2 have known vulnerabilities?
No known advisories affect has-ansi 6.0.2 according to the data Vigia checks.
Is has-ansi still maintained?
has-ansi published 0 stable releases in the last 12 months; the most recent was 430 days ago. Activity: slowing down.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- @npmcli/agent
- @formatjs/icu-skeleton-parser
- throat
- @date-fns/tz
- lodash.flatten
- @tanstack/router-plugin
- renderkid
- array-unique
- @svgr/babel-preset
- postcss-normalize-repeat-style
- @formatjs/icu-messageformat-parser
- atob
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/has-ansi) [](https://vigia.coredls.cloud/npm/has-ansi) [](https://vigia.coredls.cloud/npm/has-ansi)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/has-ansi
GET https://vigia.coredls.cloud/v1/packages/npm/has-ansi/versions/{version}