widest-line

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

v6.0.0 MIT 9 versions Maintained by sindresorhus
  • string
  • character
  • unicode
  • width
  • visual
  • column
  • columns
  • fullwidth
  • full-width
  • full
  • ansi
  • escape
Weekly downloads
32.3M -16%
vs previous week
Last 30 days
145.1M
Stars

Downloads

1.5B total · Sep 1, 2025 – Sep 1, 2026

Downloads by version

Last 7 days

Versions

9 releases published since Nov 4, 2015

Commit activity

Last 12 months

Contributors

Top 10

Issues