npm · npm:string-width
string-width 活跃
Get the visual width of a string - the number of columns required to display it
string-width 的最新稳定版本是 9.0.0,发布于 2026-11-11。Vigia 于 2026-11-12 核实。
| 最新稳定版本 | 9.0.0 |
|---|---|
| 发布时间 | 2026-11-11 16:32:37 UTC |
| 安装 | npm install string-width@latest |
| 运行要求(engines) | {"node":">=22"} |
| Peer 依赖 | — |
| Dist 标签 | latest: 9.0.0 version4: 4.2.3 |
| 许可证 | MIT |
| 最新版本的安全公告 | 暂无已知 |
| 最近核实 | 2026-11-12 13:10:32 UTC |
| 来源 | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
维护情况
| 活跃度 | 活跃 |
|---|---|
| 最近的稳定版本 | 2026-09-24 14:37:52 UTC · 49 天前 |
| 过去 12 个月的稳定版本数 | 5 |
| 已发布版本数 | 31 |
仅根据发布时间估算,不反映对 issue 或安全问题的响应速度。
版本历史
| 版本 | 发布时间 |
|---|---|
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 |
显示 31 个版本中最新的 20 个。 JSON
版本兼容性
声明支持各运行时版本的最新稳定版本(依据每个版本发布的要求)。
| 运行时 | 最新兼容版本 |
|---|---|
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 |
此软件包的升级指南
把这些数据交给你的 AI 智能体
Vigia 是免费的 MCP 服务器:你的编程智能体在写代码之前就能检查版本、不兼容变更和安全漏洞。无需注册,无需 API 密钥。
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
添加到 Cursor添加到 VS Code★ 在 GitHub 上加星
任何其他 MCP 客户端
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }常见问题
string-width 的最新版本是什么?
string-width 的最新稳定版本是 9.0.0,发布于 2026-11-11。Vigia 于 2026-11-12 核实。
如何安装 string-width 的最新版本?
运行 npm install string-width@latest。最新稳定版本是 9.0.0(2026-11-12 核实)。
string-width 是否已弃用?
否。注册表中 string-width 未被标记为已弃用。
string-width 需要哪个版本的 Node.js?
string-width 9.0.0 声明的要求为:{"node":">=22"}。
string-width 9.0.0 是否存在已知漏洞?
根据 Vigia 检查的数据,没有已知安全公告影响 string-width 9.0.0。
string-width 是否仍在维护?
string-width 在过去 12 个月内发布了 5 个稳定版本,最近一次在 49 天前。活跃度:活跃。
观察到的变更
- 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
相关软件包
用于 README 的徽章
展示此软件包的最新版本、维护状态以及是否已弃用。复制 Markdown:
[](https://vigia.coredls.cloud/npm/string-width) [](https://vigia.coredls.cloud/npm/string-width) [](https://vigia.coredls.cloud/npm/string-width)
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/string-width
GET https://vigia.coredls.cloud/v1/packages/npm/string-width/versions/{version}