npm · npm:string-width
string-width active
Get the visual width of a string - the number of columns required to display it
The latest stable version of string-width is 9.0.0, published on 2026-11-11. Verified by Vigia on 2026-11-12.
| Latest stable version | 9.0.0 |
|---|---|
| Published | 2026-11-11 16:32:37 UTC |
| Install | npm install string-width@latest |
| Requires (engines) | {"node":">=22"} |
| Peer dependencies | — |
| Dist-tags | latest: 9.0.0 version4: 4.2.3 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 13:10:32 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-09-24 14:37:52 UTC · 49 days ago |
| Stable releases in the last 12 months | 5 |
| Published versions | 31 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
8.3.0 | 2026-09-24 14:37:52 UTC |
8.2.2 | 2026-07-08 20:46:47 UTC |
8.2.1 | 2026-04-27 05:27:21 UTC |
8.2.0 | 2026-02-18 16:38:40 UTC |
8.1.1 | 2026-01-29 03:42:41 UTC |
8.1.0 | 2025-09-01 11:47:08 UTC |
8.0.0 | 2025-08-22 06:09:04 UTC |
7.2.0 | 2024-06-30 14:48:16 UTC |
7.1.0 | 2024-01-22 10:48:05 UTC |
7.0.0 | 2023-10-28 12:17:10 UTC |
6.1.0 | 2023-05-06 19:32:57 UTC |
6.0.0 | 2023-05-06 08:39:49 UTC |
5.1.2 | 2022-02-28 08:22:05 UTC |
5.1.1 | 2022-02-27 09:17:35 UTC |
5.1.0 | 2022-01-09 06:04:14 UTC |
4.2.3 | 2021-09-23 17:17:21 UTC |
5.0.1 | 2021-09-13 16:35:04 UTC |
5.0.0 | 2021-04-16 07:35:43 UTC |
4.2.2 | 2021-02-28 14:22:14 UTC |
4.2.1 | 2021-02-26 09:32:11 UTC |
Showing the 20 most recent of 31 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
node 16 | 6.1.0 |
node 18 | 7.2.0 |
node 20 | 8.3.0 |
node 22 | 8.3.0 |
node 24 | 8.3.0 |
Upgrade guides for this package
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of string-width?
The latest stable version of string-width is 9.0.0, published on 2026-11-11. Verified by Vigia on 2026-11-12.
How do I install the latest version of string-width?
Run npm install string-width@latest. The latest stable version is 9.0.0 (verified 2026-11-12).
Is string-width deprecated?
No. string-width is not marked as deprecated in the registry.
Which Node.js version does string-width require?
string-width 9.0.0 declares this requirement: {"node":">=22"}.
Does string-width 9.0.0 have known vulnerabilities?
No known advisories affect string-width 9.0.0 according to the data Vigia checks.
Is string-width still maintained?
string-width published 5 stable releases in the last 12 months; the most recent was 49 days ago. Activity: active.
Observed changes
- hu Nov 12 2026 13:10:32 GMT+0000 (Coordinated Universal Time) — released 9.0.0 → 9.0.0
- Wed Nov 11 2026 16:38:25 GM +0000 (Coordinated Universal Time) — runtime_requirement_changed
- Wed Nov 11 2026 16:38:25 GM +0000 (Coordinated Universal Time) — released 8.3.0 → 9.0.0
Related packages
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/string-width) [](https://vigia.coredls.cloud/npm/string-width) [](https://vigia.coredls.cloud/npm/string-width)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/string-width
GET https://vigia.coredls.cloud/v1/packages/npm/string-width/versions/{version}