string-width
npmactive
string-width last released 8.3.0 on 2026-09-24. Its latest version requires Node.js >=20.
Facts
- Latest release
- 8.3.0, (1 month ago)
- First published
- (11 years ago)
- Releases in the last 12 months
- 5
- Median days between releases
- 70
- Median days between major versions
- 664
- Monthly downloads
- 2,062,693,279
- License
- MIT
- Repository
- github.com/sindresorhus/string-width
- Source
- registry.npmjs.org (checked 2026-10-19)
Major versions
8 major versions have been published.
| Major | First version | First released | Latest version | Latest released |
|---|---|---|---|---|
| 8 | 8.0.0 | 2025-08-22 | 8.3.0 | 2026-09-24 |
| 7 | 7.0.0 | 2023-10-28 | 7.2.0 | 2024-06-30 |
| 6 | 6.0.0 | 2023-05-06 | 6.1.0 | 2023-05-06 |
| 5 | 5.0.0 | 2021-04-16 | 5.1.2 | 2022-02-28 |
| 4 | 4.0.0 | 2019-03-18 | 4.2.3 | 2021-09-23 |
| 3 | 3.0.0 | 2018-12-15 | 3.1.0 | 2019-03-08 |
| 2 | 2.0.0 | 2016-09-22 | 2.1.1 | 2017-07-18 |
| 1 | 1.0.0 | 2015-07-16 | 1.0.2 | 2016-08-14 |
Runtime requirements
The latest version of string-width declares these runtime constraints.
| Runtime | Constraint | Minimum version | Since version | Since |
|---|---|---|---|---|
| Node.js | >=20 | 20.0.0 | 8.0.0 | 2025-08-22 |
Supported runtimes
The latest version of string-width runs on 7 tracked runtime releases.
Keelbench tracks end-of-life dates for 469 products, updated daily. Check your repositories against these dates with Deps.