chalk / wrap-ansi

Wordwrap a string with ANSI escape codes
MIT License
120 stars 25 forks source link

Add a `ambiguousIsNarrow` option #47

Closed ehmicky closed 2 years ago

ehmicky commented 2 years ago

Some users might want to override the default value for the string-width option ambiguousIsNarrow. See https://github.com/sindresorhus/string-width/issues/38 about reasons why they might want this.

Therefore, this library should allow passing that option.

Note: I can submit a PR if this sounds good.

sindresorhus commented 2 years ago

Now that it's fixed in string-width, do you still need this? Otherwise, I prefer to wait until someone actually needs this before exposing an option for it.

ehmicky commented 2 years ago

Exactly, this is not needed anymore, and I agree adding an option is not helpful anymore then. Thanks!