</>PackageGraphPackageGraph

string-width

npmv8.2.2TypeScript

Get the visual width of a string - the number of columns required to display it

0
Weekly downloads
2
Dependents
5
Dependencies
4/100
Popularity

Overview

string-width is an npm package that get the visual width of a string - the number of columns required to display it. The latest version is 8.2.2, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need get the visual width of a string - the number of columns required to display it and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Relationship graph

Dependencies (left) and dependents (right) of string-width.

get-east-asian-wi…orayargscliuistring-width
string-width dependencies dependents

Dependencies

Runtime (2)

Dev (3)

ava ^6.4.1tsd ^0.33.0xo ^1.2.3

Used by

Popular packages that depend on string-width.

Alternatives to string-width

Frequently installed together

Version history

VersionPublishedLicense
8.2.2latest12 days agoMIT
8.2.12 months agoMIT
8.2.05 months agoMIT
8.1.15 months agoMIT
8.1.010 months agoMIT
8.0.011 months agoMIT
7.2.02 years agoMIT
7.1.02 years agoMIT
7.0.02 years agoMIT
6.1.03 years agoMIT
6.0.03 years agoMIT
5.1.24 years agoMIT
5.1.14 years agoMIT
5.1.04 years agoMIT
4.2.34 years agoMIT
5.0.14 years agoMIT
5.0.05 years agoMIT
4.2.25 years agoMIT
4.2.15 years agoMIT
4.2.06 years agoMIT

Maintainers

Keywords

Funding

Frequently asked questions

How do I install string-width?

Run `npm install string-width` to add string-width to your npm project.

What license is string-width released under?

string-width is distributed under the MIT license.

How popular is string-width?

string-width has approximately 0 downloads per week and 2 known dependent packages.