NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #13 most downloaded on npm
Get the visual width of a string - the number of columns required to display it
Last release 10 days ago
24 Sep 2026
Release timing varies
gaps range from 1 weeks to 1.2 years
Most releases are documented
notes for 25 of 31 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
31 releases · first in 2015
Improve performance 31ae8b8 v8.2.2...v8.3.0
Fix spacing mark width handling ( #80 ) b62c9ea
One column per quarter.
Fix Hangul grapheme width handling 9781ea4
Improve performance with ASCII fast path ( #72 ) 91b9857
Fix crash on Unicode Format characters like U+0600 7626ac3
Improve performance bf041e0 8691a94
It now handles a lot more edge-cases fbea7e5
Handle more edge-cases be33439 v7.1.0...v7.2.0
Improve performance ( #54 ) b0dd0fa
It now uses the most recent Unicode data , which fixes some false-positives 97b50e8
Improve performance ( #49 ) fe356d8
Require Node.js 16 (#47) f85812f
This release is not compatible with Firefox. If you need Firefox support, stay on v5.
countAnsiEscapeCodes option (#48) 6e6993bhttps://github.com/sindresorhus/string-width/compare/v5.1.2...v6.0.0
Internal refactor (#40) 2fe6df9
https://github.com/sindresorhus/string-width/compare/v5.1.1...v5.1.2
Fix incorrect default for ambiguousIsNarrow option 483baa1
ambiguousIsNarrow option 483baa1https://github.com/sindresorhus/string-width/compare/v5.1.0...v5.1.1
Add ambiguousIsNarrow option (#34) 8438ea2
ambiguousIsNarrow option (#34) 8438ea2https://github.com/sindresorhus/string-width/compare/v5.0.1...v5.1.0
Upgrade dependencies (#31) 0a37b98
https://github.com/sindresorhus/string-width/compare/v5.0.0...v5.0.1
This package is now pure ESM. Please read this.
https://github.com/sindresorhus/string-width/compare/v4.2.2...v5.0.0
Backport: Upgrade strip-ansi dependency: https://github.com/chalk/strip-ansi/releases/tag/v6.0.1
strip-ansi dependency: https://github.com/chalk/strip-ansi/releases/tag/v6.0.1https://github.com/sindresorhus/string-width/compare/v4.2.2...v4.2.3
Improve performance (#28) b319f06
https://github.com/sindresorhus/string-width/compare/v4.2.1...v4.2.2
Improve performance by performing an early exit (#27) a9fc011
https://github.com/sindresorhus/string-width/compare/v4.2.0...v4.2.1
Update to strip-ansi v6.x (#24) 581d345
https://github.com/sindresorhus/string-width/compare/v4.1.0...v4.2.0
Refactor TypeScript definition to CommonJS compatible export (#22) bd785c3
https://github.com/sindresorhus/string-width/compare/v4.0.0...v4.1.0
Add TypeScript definition (#21) bd7822c
Breaking:
Enhancements:
https://github.com/sindresorhus/string-width/compare/v3.1.0...v4.0.0
Add support for terminal link escape codes (#20) 235d991
https://github.com/sindresorhus/string-width/compare/v3.0.0...v3.1.0
Breaking: - Require Node.js 6 5b6b7ca Other: - Support emoji (#17) 0bc308a
Breaking:
Other:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →