Skip to content
JS
Package

ansi-regex

Regular expression for matching ANSI escape codes

v6.3.0, 12 Aug 2026MITESM onlyTypes: BundledCLI tools and terminal utilities
$ npm install ansi-regex

Key numbers

As of 25 Sept 2026
Weekly downloads
377.3m
+49% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 month ago
v6.3.0
GitHub stars
200
88 forks
Open issues / PRs
0 / 0
Contributors
15
Commits, last 52 weeks
4

Downloads

Last week 2026-09-15 to 2026-09-21
0200m400m600mSept 2025Mar 2026Sept 2026High 555.8m (16 Jun 2026)Low 166.9m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

377,284,029 downloads last week, 1,707,275,423 in the last month. The 12-month change of +49% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
121 in total
Latest version
6.3.0, 12 Aug 20261 month ago
First published
3 Jun 2014
Last push to GitHub
18 Sept 20266 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
4
Dependents on npm
3,392

Major versions

  1. v6 first release 6.0.0, 16 Apr 2021
  2. v5 first release 5.0.0, 4 Oct 2019
  3. v4 first release 4.0.0, 18 Sept 2018
  4. v3 first release 3.0.0, 20 Jun 2017
  5. v2 first release 2.0.0, 30 Jun 2015
  6. v1 first release 1.0.0, 13 Aug 2014
  7. v0 first release 0.1.0, 3 Jun 2014

Recent releases

VersionPublished
6.3.012 Aug 2026
6.2.28 Sept 2025
6.2.017 Aug 2025
6.1.09 Sept 2024
3.0.127 Mar 2022
4.1.112 Mar 2022
5.0.114 Sept 2021
6.0.110 Sept 2021
6.0.016 Apr 2021
5.0.04 Oct 2019
4.1.08 Mar 2019
4.0.018 Sept 2018
3.0.020 Jun 2017
2.1.114 Jan 2017
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=12
Runtimes
-
Unpacked size (npm)
5.9 kB
Dependencies (0)
None
npm install ansi-regex
  • jsDelivrhttps://cdn.jsdelivr.net/npm/ansi-regex@6.3.0/
  • unpkghttps://unpkg.com/ansi-regex@6.3.0/
  • esm.shhttps://esm.sh/ansi-regex@6.3.0
PackageWeekly downloadsGzipLast releaseModuleComparison
yoctocolors28.1m-1 month agoESM only-
yoctocolors-cjs21.5m-1 year agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.