Truncate a string to a specific width in the terminal
☆88Mar 1, 2026Updated 3 weeks ago
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:
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- Modify the values of an object☆28Sep 10, 2021Updated 4 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 4 years ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆24Jul 9, 2022Updated 3 years ago
- Toggle the CLI cursor☆112Jul 26, 2024Updated last year
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- List of platforms supported by Node.js☆12Nov 3, 2021Updated 4 years ago
- Get the macOS version of the current system☆23Sep 9, 2025Updated 6 months ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Jan 24, 2026Updated 2 months ago
- Get the iTerm2 version☆11Jan 5, 2026Updated 2 months ago
- Modify the filename in a path☆17Jul 9, 2022Updated 3 years ago
- Try to downgrade the permissions of a process with root privileges☆17Aug 31, 2023Updated 2 years ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Get the name of a named function☆34Apr 7, 2021Updated 4 years ago
- A safer `.hasOwnProperty()`☆29Jun 21, 2023Updated 2 years ago
- Get the number of days in a month☆27Oct 18, 2021Updated 4 years ago
- Get the UTI (Uniform Type Identifier) of a file on macOS☆25Oct 7, 2021Updated 4 years ago
- Left pad each line in a string☆20Aug 31, 2023Updated 2 years ago
- Display an error in a GUI dialog☆22May 3, 2021Updated 4 years ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Alphabetically sort an array of strings☆40Apr 9, 2021Updated 4 years ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Get the URL from a web shortcut file☆14Aug 14, 2021Updated 4 years ago
- Clear the terminal cross-platform☆45Oct 13, 2021Updated 4 years ago
- Get XDG Base Directory paths☆94Aug 5, 2021Updated 4 years ago
- Check if it's the first time the process is run☆83Sep 12, 2025Updated 6 months ago
- Strip UTF-8 byte order mark (BOM) from a buffer☆21Oct 24, 2023Updated 2 years ago
- Check if a Buffer/Uint8Array is a WebP image☆21Sep 18, 2021Updated 4 years ago
- Node.js 0.12 fs.access() & fs.accessSync() ponyfill☆13Oct 30, 2023Updated 2 years ago
- Reliably get the terminal window size☆146Feb 2, 2026Updated last month
- Check if a value is an error constructor☆14Apr 7, 2021Updated 4 years ago
- Check if a file path is a text file☆21Apr 30, 2024Updated last year
- Convert a path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆28Aug 9, 2021Updated 4 years ago
- Regular expression for matching reserved filename characters☆53Sep 14, 2025Updated 6 months ago
- Check if a path is the current working directory☆22May 10, 2025Updated 10 months ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Get or check the current macOS version☆62Aug 12, 2021Updated 4 years ago