Skip to content
JS
Package

fast-string-width

A fast function for calculating the visual width of a string once printed to the terminal.

v3.0.2, 30 Sept 2025MITESM onlyTypes: BundledCLI tools and terminal utilitiesStrings and text
$ npm install fast-string-width

Key numbers

As of 25 Sept 2026
Weekly downloads
23.9m
+66487% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
11 months ago
v3.0.2
GitHub stars
44
0 forks
Open issues / PRs
1 / 0
Contributors
-
Commits, last 52 weeks
2

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30m40mSept 2025Mar 2026Sept 2026High 30.5m (8 Sept 2026)Low 24.3k (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.

23,931,183 downloads last week, 115,270,873 in the last month. The 12-month change of +66487% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
111 in total
Latest version
3.0.2, 30 Sept 202511 months ago
First published
25 Feb 2024
Last push to GitHub
30 Sept 2025359 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
0
Commits, last 52 weeks
2
Dependents on npm
68

Major versions

  1. v3 first release 3.0.0, 22 Aug 2025
  2. v2 first release 2.0.0, 4 Aug 2025
  3. v1 first release 1.0.0, 25 Feb 2024

Recent releases

VersionPublished
3.0.230 Sept 2025
3.0.122 Aug 2025
3.0.022 Aug 2025
2.0.04 Aug 2025
1.1.011 Jan 2025
1.0.527 Feb 2024
1.0.426 Feb 2024
1.0.325 Feb 2024
1.0.225 Feb 2024
1.0.125 Feb 2024
1.0.025 Feb 2024
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
3.4 kB
Dependencies (1)
fast-string-truncated-width
npm install fast-string-width
  • jsDelivrhttps://cdn.jsdelivr.net/npm/fast-string-width@3.0.2/
  • unpkghttps://unpkg.com/fast-string-width@3.0.2/
  • esm.shhttps://esm.sh/fast-string-width@3.0.2
PackageWeekly downloadsGzipLast releaseModuleComparison
window-size4.1m-8 years agoCommonJS-
string-length41.3m-8 months agoESM only-
cypress-terminal-report421.9k-11 months agoCommonJS-
word-wrap103.4m-3 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.