sindresorhus / cli-truncate

Truncate a string to a specific width in the terminal
MIT License
85 stars 14 forks source link

Use other character (or no character) instead of elipsis #18

Closed codemaster138 closed 3 years ago

codemaster138 commented 3 years ago

This is a great tool, but the one thing preventing me from using it the fact that in my use case i'd like the text to be truncated w/o an ellipsis.

Could we have an option truncateChar or so that allows us replace the ellipsis with another character (or none at all)?