npm package
Homehas-ansi
has-ansi is a utility for checking if a string contains ANSI escape codes, which are often used for styling terminal output. It is useful in applications that need to determine if text formatting is present before processing or displaying the text. This package can be integrated into tools that handle terminal output or text processing.
- lurq health score
- 59/100
- Confidence
- proven
- Weekly downloads
- 15,340,584
- Latest version
- 6.0.2
- Last release
- Sep 8, 2025
- License
- MIT
Should you depend on has-ansi?
lurq's verdict: low
- No known advisories
Check this from your coding agent
This page is a daily snapshot. lurq's verify tool checks has-ansi at the exact version your agent is about to install, and compat checks it against the rest of your stack. One command connects Claude Code, Cursor, VS Code and other agents:
npx lurqrun
Free to start. Quickstart
Upgrading has-ansi
What each major version removed, renamed or re-signatured, from lurq's extraction of the published packages.
- 5.0.1 → 6.0.2diff ready
- 4.0.1 → 5.0.1being extracted
- 3.0.0 → 4.0.1being extracted
Other testing packages lurq scores
- fast-check94/100 · proven
- marked93/100 · proven
- @middy/util93/100 · proven
- jsdom90/100 · proven
- mocha90/100 · proven
Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 3, 2026; this page refreshes every 168 hours. Source repository.