← Home

ansi-regex

Regular expression for matching ANSI escape codes

15
Versions
MIT
License
No
Install Scripts
Missing
Provenance

Supply chain provenance

Status for the latest visible version.

No SLSA provenance npm registry signatures gitHead linked

Without SLSA provenance there is no cryptographic link between this tarball and the public source — the axios compromise (March 2026) relied on exactly this gap.

Maintainers

sindresorhus

Keywords

ansistylescolorcolourcolorsterminalconsoleclistringttyescapeformattingrgb256shellxtermcommand-linetextregexregexprematchtestfindpattern

Accepted risks

Findings the reviewer chose to accept rather than block on.

SourceRuleReasonAccepted byWhen
maintainer-change maintainer-added AI (maintainer-change): qix is a known chalk ecosystem contributor; sindresorhus remains the author/publisher. Maintainer roster changes are routine for this well-established package. ai
maintainer-change maintainer-removed AI (maintainer-change): jbnicolai removal is a routine maintainer cleanup for this long-lived chalk ecosystem package; no takeover indicators present. ai
source-diff source-size-tripled AI (source-diff): Size increase from 145B to ~1KB for a regex utility is consistent with added TypeScript types/docs, not injected payloads. No install scripts or suspicious deps. ai
provenance publisher-changed AI (provenance): jbnicolai (Joshua Appelman) is a listed co-maintainer of sindresorhus packages; this is a well-known legitimate collaboration from 2015. ai
provenance no-provenance AI (provenance): Published in 2015, before Sigstore provenance existed. Expected for legacy versions of this package. ai

Versions (showing 15 of 15)

Version Deps Published
6.2.2 0 / 4
6.2.0 0 / 4
6.1.0 0 / 4
6.0.1 0 / 3
5.0.1 0 / 3
4.1.1 0 / 2
3.0.1 0 / 2
2.1.1 0 / 2
2.0.0 0 / 1
1.1.1 0 / 1
1.1.0 0 / 1
1.0.0 0 / 1
0.2.1 0 / 1
0.2.0 0 / 1
0.1.0 0 / 1