Skip to content
JS
Package

wrap-ansi

Wordwrap a string with ANSI escape codes

v10.0.2, 21 Sept 2026MITESM onlyTypes: BundledCLI tools and terminal utilitiesLogging
$ npm install wrap-ansi

Key numbers

As of 25 Sept 2026
Weekly downloads
316.8m
+62% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
4 days ago
v10.0.2
GitHub stars
140
31 forks
Open issues / PRs
0 / 0
Contributors
12
Commits, last 52 weeks
13

Downloads

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

316,818,085 downloads last week, 1,490,957,462 in the last month. The 12-month change of +62% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
323 in total
Latest version
10.0.2, 21 Sept 20264 days ago
First published
19 Aug 2015
Last push to GitHub
21 Sept 20264 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
13
Dependents on npm
6,930

Major versions

  1. v10 first release 10.0.0, 20 Feb 2026
  2. v9 first release 9.0.0, 28 Oct 2023
  3. v8 first release 8.0.0, 16 Apr 2021
  4. v7 first release 7.0.0, 22 Apr 2020
  5. v6 first release 6.0.0, 11 Jun 2019
  6. v5 first release 5.0.0, 3 Mar 2019
  7. v4 first release 4.0.0, 31 Aug 2018
  8. v3 first release 3.0.0, 23 Jul 2017
  9. v2 first release 2.0.0, 1 Dec 2015
  10. v1 first release 1.0.0, 13 Oct 2015
  11. v0 first release 0.1.0, 19 Aug 2015

Recent releases

VersionPublished
10.0.221 Sept 2026
10.0.117 Aug 2026
10.0.020 Feb 2026
9.0.28 Sept 2025
9.0.028 Oct 2023
8.1.023 Jan 2023
8.0.113 Sept 2021
8.0.016 Apr 2021
7.0.022 Apr 2020
6.2.011 Nov 2019
6.1.023 Oct 2019
6.0.011 Jun 2019
5.1.02 Apr 2019
5.0.03 Mar 2019
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=20
Runtimes
-
Unpacked size (npm)
25 kB
Dependencies (2)
ansi-stylesstring-width
npm install wrap-ansi
  • jsDelivrhttps://cdn.jsdelivr.net/npm/wrap-ansi@10.0.2/
  • unpkghttps://unpkg.com/wrap-ansi@10.0.2/
  • esm.shhttps://esm.sh/wrap-ansi@10.0.2
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-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.