Skip to content
JS
Package

fast-string-truncated-width

A fast function for calculating where a string should be truncated, given an optional width limit and an ellipsis string.

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

Key numbers

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

Downloads

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

24,057,730 downloads last week, 105,993,317 in the last month. The 12-month change of +37628% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
210 in total
Latest version
3.0.3, 30 Sept 202511 months ago
First published
27 Feb 2024
Last push to GitHub
16 Jul 202670 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
2
Commits, last 52 weeks
5
Dependents on npm
11

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.4, 27 Feb 2024

Recent releases

VersionPublished
3.0.330 Sept 2025
3.0.230 Sept 2025
3.0.122 Aug 2025
3.0.022 Aug 2025
2.0.14 Aug 2025
2.0.04 Aug 2025
1.2.112 Jan 2025
1.2.011 Jan 2025
1.1.027 Feb 2024
1.0.427 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)
12 kB
Dependencies (0)
None
npm install fast-string-truncated-width
  • jsDelivrhttps://cdn.jsdelivr.net/npm/fast-string-truncated-width@3.0.3/
  • unpkghttps://unpkg.com/fast-string-truncated-width@3.0.3/
  • esm.shhttps://esm.sh/fast-string-truncated-width@3.0.3
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.