sindresorhus / cli-truncate

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

refactor: create an helper method to avoid repetition #21

Closed ftonato closed 3 years ago

sindresorhus commented 3 years ago

Thanks, but I think the existing code is clearer.