Truncate a string to a specific width in the terminal
☆88Mar 1, 2026Updated this week
Alternatives and similar repositories for cli-truncate
Users that are interested in cli-truncate are comparing it to the libraries listed below
Sorting:
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Modify the values of an object☆29Sep 10, 2021Updated 4 years ago
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 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
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Jan 24, 2026Updated last month
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Toggle the CLI cursor☆113Jul 26, 2024Updated last year
- List of platforms supported by Node.js☆12Nov 3, 2021Updated 4 years ago
- Get the iTerm2 version☆11Jan 5, 2026Updated last month
- Alphabetically sort an array of strings☆40Apr 9, 2021Updated 4 years ago
- Get the name of a named function☆34Apr 7, 2021Updated 4 years ago
- Modify the filename in a path☆17Jul 9, 2022Updated 3 years ago
- Get the number of days in a month☆27Oct 18, 2021Updated 4 years ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Regular expression for matching reserved filename characters☆53Sep 14, 2025Updated 5 months ago
- Get the macOS version of the current system☆23Sep 9, 2025Updated 5 months ago
- Truncate a semver version: 1.2.3 → 1.2.0☆18Jul 9, 2022Updated 3 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- Try to downgrade the permissions of a process with root privileges☆17Aug 31, 2023Updated 2 years ago
- Get or check the current macOS version☆62Aug 12, 2021Updated 4 years ago
- Get XDG Base Directory paths☆94Aug 5, 2021Updated 4 years ago
- Get the UTI (Uniform Type Identifier) of a file on macOS☆25Oct 7, 2021Updated 4 years ago
- Check if a file path is a text file☆21Apr 30, 2024Updated last year
- Check if the character represented by a given Unicode code point is fullwidth☆51Aug 31, 2025Updated 6 months ago
- Check if the process is running with elevated privileges☆43Aug 11, 2021Updated 4 years ago
- Check if a value is an error constructor☆14Apr 7, 2021Updated 4 years ago
- Get the URL from a web shortcut file☆14Aug 14, 2021Updated 4 years ago
- Node.js 0.12 fs.access() & fs.accessSync() ponyfill☆13Oct 30, 2023Updated 2 years ago
- Support any Observable library and polyfill☆74Feb 2, 2026Updated last month
- Display an error in a GUI dialog☆22May 3, 2021Updated 4 years ago
- Hook and modify stdout and stderr☆57Sep 9, 2025Updated 5 months ago
- Trim newlines from the start and/or end of a string☆49Mar 20, 2023Updated 2 years ago
- ES2015 Number.isNaN() ponyfill☆30May 2, 2024Updated last year
- Check if a value is a Blob☆24Oct 27, 2023Updated 2 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Parse and stringify file paths with line and column like `unicorn.js14`☆24Nov 22, 2025Updated 3 months ago
- Check if a path is the current working directory☆22May 10, 2025Updated 9 months ago