// package
string-width
type: "module"
// preferences
// replacements (2)
fast-string-width
Community choiceThis package provides equivalent functionality and has been flagged as more performant.
→ docs: e18e docs
→ npmx: fast-string-width
Bun.stringWidth
Available nativelyThis feature is available natively by using Bun.stringWidth. No third-party package needed.