Package Health

has-ansi

Check if a string has ANSI escape codes

Latest 6.0.2NPMNPMMIT
Declared in package metadata.

24%

Total Score

critical

An earlier release, 6.0.1, was published with malware on 8 Sep 2025.

Are you affected? Scan for Free
Malware icon

Malware detected in 1 version

Latest:v6.0.1, detected 1 year ago

Health Score Breakdown

Malware historydanger

An earlier release, 6.0.1, was published with malware on 8 Sep 2025.

Build provenancecaution

The release has no build attestation or trusted publisher identity.

Release historycaution

The project has 14 releases since June 2014, with a median interval of about 137 days and no releases after September 2025.

Repo bus factorcaution

sindresorhus made all 1 repository commit in the measured period.

Repo commit activitycaution

The repository had 1 commit from 1 active maintainer in the three months to September 2026.

Vulnerabilities

We didn't find any vulnerabilities for this package.

Package versions

VersionPublishedVulnerabilities
6.0.28 Sept 2025
0
0 critical, 0 total
0
0 high, 0 total
0
0 medium, 0 total
0
0 low, 0 total
6.0.010 Jul 2024
0
0 critical, 0 total
0
0 high, 0 total
0
0 medium, 0 total
0
0 low, 0 total
5.0.113 Sept 2021
0
0 critical, 0 total
0
0 high, 0 total
0
0 medium, 0 total
0
0 low, 0 total
5.0.016 Apr 2021
0
0 critical, 0 total
0
0 high, 0 total
0
0 medium, 0 total
0
0 low, 0 total
4.0.126 Feb 2021
0
0 critical, 0 total
0
0 high, 0 total
0
0 medium, 0 total
0
0 low, 0 total
4.0.010 Sept 2019
0
0 critical, 0 total
0
0 high, 0 total
0
0 medium, 0 total
0
0 low, 0 total
3.0.020 Jun 2017
0
0 critical, 0 total
0
0 high, 0 total
0
0 medium, 0 total
0
0 low, 0 total
2.0.030 Jun 2015
0
0 critical, 0 total
0
0 high, 0 total
0
0 medium, 0 total
0
0 low, 0 total
1.0.322 Feb 2015
0
0 critical, 0 total
0
0 high, 0 total
0
0 medium, 0 total
0
0 low, 0 total
1.0.216 Feb 2015
0
0 critical, 0 total
0
0 high, 0 total
0
0 medium, 0 total
0
0 low, 0 total

Maintainers

Direct Dependencies

DependencyLast ReleaseScore
ansi-regex
Version ^6.0.1
—
—

Weekly Downloads

Info

Last Published
1 year ago
Created
12 years ago
Unpacked Size
0.1 MB

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea