Awesome Lists

cli-truncate

by sindresorhus

JavaScriptpushed almost 3 years ago

Truncate a string to a specific width in the terminal

AI summary

String truncator

Library to truncate strings to fit terminal widths

stars
86
forks
14
watching
5
awesome list
1
View on GitHub

Embed the badge

Show how many awesome lists link to your project. The count updates automatically.

Awesome Lists badge
Markdown
[![Awesome Lists Badge](https://awesome.facts.dev/shield/sindresorhus/cli-truncate/links.svg)](https://awesome.facts.dev/awesome/sindresorhus/cli-truncate)
HTML
<a href="https://awesome.facts.dev/awesome/sindresorhus/cli-truncate"><img src="https://awesome.facts.dev/shield/sindresorhus/cli-truncate/links.svg" alt="Awesome Lists Badge" /></a>
Image URL
https://awesome.facts.dev/shield/sindresorhus/cli-truncate/links.svg

Add a GitHub project

Missing a project or an awesome list? Paste its GitHub URL and we fetch it right away.