npm · npm:ansi-styles
ansi-styles active
ANSI escape codes for styling strings in the terminal
The latest stable version of ansi-styles is 7.0.0, published on 2026-07-26. Verified by Vigia on 2026-11-12.
| Latest stable version | 7.0.0 |
|---|---|
| Published | 2026-07-26 14:57:36 UTC |
| Install | npm install ansi-styles@latest |
| Requires (engines) | {"node":">=22"} |
| Peer dependencies | — |
| Dist-tags | latest: 7.0.0 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 13:11:00 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Ask your AI assistant to check this
AI models are trained up to a date, so they can be wrong about versions, deprecations and vulnerabilities. Paste this into Claude, ChatGPT, Perplexity or Cursor and it will answer with the verified data on this page:
Before answering about the npm package "ansi-styles", check Vigia (verified, dated facts): https://vigia.coredls.cloud/v1/packages/npm/ansi-styles . For my whole project use https://vigia.coredls.cloud/context
Using an AI coding agent every day? Connect Vigia once and it checks this by itself.
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-07-26 14:57:36 UTC · 109 days ago |
| Stable releases in the last 12 months | 1 |
| Published versions | 29 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
7.0.0 | 2026-07-26 14:57:36 UTC |
6.2.3 | 2025-09-08 14:52:15 UTC |
6.2.1 | 2022-10-12 16:34:06 UTC |
6.2.0 | 2022-10-11 08:53:33 UTC |
6.1.1 | 2022-09-10 06:30:34 UTC |
6.1.0 | 2021-04-21 08:50:34 UTC |
6.0.0 | 2021-04-16 05:46:35 UTC |
5.2.0 | 2021-03-31 07:15:34 UTC |
5.1.0 | 2021-01-22 14:28:47 UTC |
5.0.0 | 2020-12-01 03:42:08 UTC |
4.3.0 | 2020-10-04 19:18:25 UTC |
4.2.1 | 2020-01-01 18:15:19 UTC |
4.2.0 | 2019-11-12 11:20:05 UTC |
4.1.0 | 2019-08-21 23:35:47 UTC |
4.0.0 | 2019-05-31 07:09:54 UTC |
3.2.1 | 2018-03-02 09:40:00 UTC |
3.2.0 | 2017-07-23 11:25:48 UTC |
3.1.0 | 2017-06-12 22:42:00 UTC |
3.0.0 | 2017-01-17 09:16:34 UTC |
2.2.1 | 2016-03-28 20:35:18 UTC |
Showing the 20 most recent of 29 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 | 6.2.3 |
node 18 | 6.2.3 |
node 20 | 6.2.3 |
node 22 | 7.0.0 |
node 24 | 7.0.0 |
Upgrade guides for this package
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 ansi-styles?
The latest stable version of ansi-styles is 7.0.0, published on 2026-07-26. Verified by Vigia on 2026-11-12.
How do I install the latest version of ansi-styles?
Run npm install ansi-styles@latest. The latest stable version is 7.0.0 (verified 2026-11-12).
Is ansi-styles deprecated?
No. ansi-styles is not marked as deprecated in the registry.
Which Node.js version does ansi-styles require?
ansi-styles 7.0.0 declares this requirement: {"node":">=22"}.
Does ansi-styles 7.0.0 have known vulnerabilities?
No known advisories affect ansi-styles 7.0.0 according to the data Vigia checks.
Is ansi-styles still maintained?
ansi-styles published 1 stable releases in the last 12 months; the most recent was 109 days ago. Activity: active.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- debug
- brace-expansion
- strip-ansi
- minimatch
- semver
- ansi-regex
- ms
- supports-color
- chalk
- commander
- lru-cache
- string-width
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/ansi-styles) [](https://vigia.coredls.cloud/npm/ansi-styles) [](https://vigia.coredls.cloud/npm/ansi-styles)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/ansi-styles
GET https://vigia.coredls.cloud/v1/packages/npm/ansi-styles/versions/{version}