string-width @1.0.0
MIT
License
No
Install Scripts
3
Dependencies
1
Dev Dependencies
1.9 KB
Package Size
Published
Get the visual width of a string - the number of columns required to display it
Maintainers
sindresorhus
Keywords
stringstrcharactercharunicodewidthvisualcolumncolumnsfullwidthfull-widthfullansiescapecodesclicommand-lineterminalconsolecjkchinesejapanesekoreanfixed-width
Dependencies (3)
| Package | Constraint | Registry Status |
|---|---|---|
| strip-ansi | ^3.0.0 | auto_approved |
| code-point-at | ^1.0.0 | auto_approved |
| is-fullwidth-code-point | ^1.0.0 | auto_approved |
Dev Dependencies (1)
| Package | Constraint | Registry Status |
|---|---|---|
| ava | 0.0.4 | auto_approved |
Transitive Dependency Tree
5 transitive deps
max depth 2
├─
code-point-at
^1.0.0
→ 1.1.0
├─
is-fullwidth-code-point
^1.0.0
→ 1.0.0
├─
strip-ansi
^3.0.0
→ 3.0.1
├─
ansi-regex
^2.0.0
→ 2.1.1
├─
number-is-nan
^1.0.0
→ 1.0.1
Commit: 4bbfa2814ce7 Browse source
Published to npm: