string-width 8.1.0
Get the visual width of a string - the number of columns required to display it
string-width@8.1.0 was published on 2025-09-01. Its manifest declares 2 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. The declared Node.js requirement is >=20.
All string-width versions · Permanent reference to 8.1.0 · Latest release
Package specifications
| Version | 8.1.0 |
|---|---|
| License declaration | MIT |
| Published | 2025-09-01T11:47:08.387Z |
| Node.js requirement | >=20 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 2 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 7.85 KiB |
| Published file count | 5 |
| Package type | module |
| ES module entry | Not declared |
| Default entry | Not declared |
| Side effects declaration | false |
| Direct advisories | 0 |
| Resolved graph dependencies | 3 |
| Repository stars | 530 |
| Repository forks | 44 |
Install string-width 8.1.0
npm install string-width@8.1.0 pnpm add string-width@8.1.0 yarn add string-width@8.1.0
Runtime dependencies
- strip-ansi ^7.1.0
- get-east-asian-width ^1.3.0
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- ansi-regex@6.4.0 — indirect
- get-east-asian-width@1.7.0 — direct
- strip-ansi@7.2.0 — direct
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Maintained | 2/10 — 3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2 |
|---|---|
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Code-Review | 2/10 — Found 8/30 approved changesets -- score normalized to 2 |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| Security-Policy | 10/10 — security policy file detected |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| License | 10/10 — license file detected |
| Fuzzing | 0/10 — project is not fuzzed |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/string-width/8.1.0 — retrieved 2026-10-29T12:12:40.655Z
- https://api.deps.dev/v3/projects/github.com%2Fsindresorhus%2Fstring-width — retrieved 2026-10-29T12:07:38.956Z
- https://api.deps.dev/v3/systems/npm/packages/string-width/versions/8.1.0 — retrieved 2026-10-29T12:12:41.125Z
- https://api.deps.dev/v3/systems/npm/packages/string-width/versions/8.1.0:dependencies — retrieved 2026-10-29T12:12:41.181Z