Skip to content
JS
Package

strip-ansi

Strip ANSI escape codes from a string

v7.2.0, 26 Feb 2026MITESM onlyTypes: BundledCLI tools and terminal utilitiesLogging
$ npm install strip-ansi

Key numbers

As of 25 Sept 2026
Weekly downloads
397m
+51% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
6 months ago
v7.2.0
GitHub stars
498
44 forks
Open issues / PRs
0 / 0
Contributors
13
Commits, last 52 weeks
5

Downloads

Last week 2026-09-15 to 2026-09-21
0200m400m600mSept 2025Mar 2026Sept 2026High 593.9m (16 Jun 2026)Low 181.1m (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.

397,007,896 downloads last week, 1,899,305,054 in the last month. The 12-month change of +51% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
122 in total
Latest version
7.2.0, 26 Feb 20266 months ago
First published
7 Dec 2013
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
5
Dependents on npm
10,950

Major versions

  1. v7 first release 7.0.0, 16 Apr 2021
  2. v6 first release 6.0.0, 9 Nov 2019
  3. v5 first release 5.0.0, 29 Sept 2018
  4. v4 first release 4.0.0, 20 Jun 2017
  5. v3 first release 3.0.0, 30 Jun 2015
  6. v2 first release 2.0.0, 13 Aug 2014
  7. v1 first release 1.0.0, 23 Jul 2014
  8. v0 first release 0.1.0, 7 Dec 2013

Recent releases

VersionPublished
7.2.026 Feb 2026
7.1.28 Sept 2025
7.1.028 May 2023
6.0.123 Sept 2021
7.0.111 Sept 2021
7.0.016 Apr 2021
6.0.09 Nov 2019
5.2.018 Mar 2019
5.1.08 Mar 2019
5.0.029 Sept 2018
4.0.020 Jun 2017
3.0.121 Feb 2016
3.0.030 Jun 2015
2.0.116 Jan 2015
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=12
Runtimes
-
Unpacked size (npm)
4.2 kB
Dependencies (1)
ansi-regex
npm install strip-ansi
  • jsDelivrhttps://cdn.jsdelivr.net/npm/strip-ansi@7.2.0/
  • unpkghttps://unpkg.com/strip-ansi@7.2.0/
  • esm.shhttps://esm.sh/strip-ansi@7.2.0
PackageWeekly downloadsGzipLast releaseModuleComparison
yoctocolors28.1m-1 month agoESM only-
yoctocolors-cjs21.5m-1 year agoCommonJS-
ansi-escapes95m-7 months agoESM only-
ansi-colors45.7m-4 years agoCommonJS-

Related

Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.