string-width

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

MIT License

Downloads
608.7M
Stars
448
Committers
13

Bot releases are hidden (Show)

string-width - Latest Release

Published by sindresorhus 9 months ago

string-width -

Published by sindresorhus 12 months ago

Breaking

  • Require Node.js 18 97b50e8

Improvements

https://github.com/sindresorhus/string-width/compare/v6.1.0...v7.0.0

string-width -

Published by sindresorhus over 1 year ago

string-width -

Published by sindresorhus over 1 year ago

Breaking

  • Require Node.js 16 (#47) f85812f

This release is not compatible with Firefox. If you need Firefox support, stay on v5.

Improvements

  • Add countAnsiEscapeCodes option (#48) 6e6993b
  • Improve compatibility with some languages (#47) f85812f

https://github.com/sindresorhus/string-width/compare/v5.1.2...v6.0.0

string-width -

Published by sindresorhus over 2 years ago

string-width -

Published by sindresorhus over 2 years ago

  • Fix incorrect default for ambiguousIsNarrow option 483baa1

https://github.com/sindresorhus/string-width/compare/v5.1.0...v5.1.1

string-width -

Published by sindresorhus almost 3 years ago

string-width -

Published by sindresorhus about 3 years ago

string-width -

Published by sindresorhus about 3 years ago

string-width -

Published by sindresorhus over 3 years ago

Breaking

  • Require Node.js 12 cec9757
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/string-width/compare/v4.2.2...v5.0.0

string-width -

Published by sindresorhus over 3 years ago

string-width -

Published by sindresorhus over 3 years ago

  • Improve performance by performing an early exit (#27) a9fc011

https://github.com/sindresorhus/string-width/compare/v4.2.0...v4.2.1

string-width -

Published by sindresorhus almost 5 years ago

string-width -

Published by sindresorhus over 5 years ago

  • Refactor TypeScript definition to CommonJS compatible export (#22) bd785c3

https://github.com/sindresorhus/string-width/compare/v4.0.0...v4.1.0

string-width -

Published by sindresorhus over 5 years ago

Breaking:

  • Require Node.js 8 855b046

Enhancements:

  • Add TypeScript definition (#21) bd7822c

https://github.com/sindresorhus/string-width/compare/v3.1.0...v4.0.0

string-width -

Published by sindresorhus over 5 years ago

  • Add support for terminal link escape codes (#20) 235d991

https://github.com/sindresorhus/string-width/compare/v3.0.0...v3.1.0

string-width -

Published by sindresorhus almost 6 years ago

Breaking:

  • Require Node.js 6 5b6b7ca

Other:

  • Support emoji (#17) 0bc308a