Truncate a string to a specific width in the terminal
☆97Sep 18, 2026Updated last month
Alternatives and similar repositories for cli-truncate
Users that are interested in cli-truncate are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Modify the values of an object☆28Sep 18, 2026Updated last month
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Sep 18, 2026Updated last month
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Sep 18, 2026Updated last month
- Truncate a semver version: 1.2.3 → 1.2.0☆17Sep 18, 2026Updated last month
- Gracefully restore the CLI cursor on exit☆42Sep 18, 2026Updated last month
- Wordpress hosting with auto-scaling - Free Trial Offer • AdFully Managed hosting for WordPress and WooCommerce businesses that need reliable, auto-scalable performance. Cloudways SafeUpdates now available.
- Toggle the CLI cursor☆115Sep 18, 2026Updated last month
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Sep 18, 2026Updated last month
- Transform the first chunk in a stream☆28Sep 18, 2026Updated last month
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Modify the filename in a path☆17Sep 18, 2026Updated last month
- Parse and stringify mdns service types☆15Jul 16, 2017Updated 9 years ago
- Strip shebang (eg. #!/bin/sh) from a string☆11Aug 18, 2021Updated 5 years ago
- Get XDG Base Directory paths☆94Sep 18, 2026Updated last month
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- GPU virtual machines on DigitalOcean Gradient AI • AdGet to production fast with high-performance AMD and NVIDIA GPUs you can spin up in seconds. The definition of operational simplicity.
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 18, 2026Updated last month
- A safer `.hasOwnProperty()`☆29Sep 18, 2026Updated last month
- Check if a path is the current working directory☆22Sep 18, 2026Updated last month
- Get the name of a named function☆34Sep 18, 2026Updated last month
- Check if a value is a regular expression☆26Sep 18, 2026Updated last month
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- Check if something is a generator function☆24Sep 18, 2026Updated last month
- Clone and modify a RegExp instance☆24Oct 13, 2026Updated 2 weeks ago
- Detect the dominant newline character of a string☆56Sep 18, 2026Updated last month
- GPU virtual machines on DigitalOcean Gradient AI • AdGet to production fast with high-performance AMD and NVIDIA GPUs you can spin up in seconds. The definition of operational simplicity.
- Check if a path is in the current working directory☆23Sep 18, 2026Updated last month
- Strip a substring from the start/end of a string☆23Sep 18, 2026Updated last month
- List of platforms supported by Node.js☆12Nov 3, 2021Updated 4 years ago
- Reliably get the terminal window size☆149Sep 20, 2026Updated last month
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆38Aug 9, 2021Updated 5 years ago
- Get the UTI (Uniform Type Identifier) of a file on macOS☆25Oct 7, 2021Updated 5 years ago
- Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz☆21Sep 18, 2026Updated last month
- Trim newlines from the start and/or end of a string☆49Sep 18, 2026Updated last month
- Returns `true` if a file path appears to be relative. Moved from the "relative" lib.☆14May 6, 2018Updated 8 years ago
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Ensure a function is stable, meaning the same input always produces the same output☆16Nov 4, 2023Updated 2 years ago
- Check if a file path is a binary file☆49Sep 18, 2026Updated last month
- Listr verbose renderer☆13Jun 8, 2020Updated 6 years ago
- Expands symbolic links and prints the resolved absolute filepath☆27May 6, 2024Updated 2 years ago
- Check if it's the first time the process is run☆83Sep 12, 2025Updated last year
- Node's default require extensions as a separate module☆11Sep 18, 2026Updated last month
- Check if a path is a file, directory, or symlink☆81Sep 18, 2026Updated last month