cli-truncate

String truncator

Library to truncate strings to fit terminal widths

Truncate a string to a specific width in the terminal

GitHub

85 stars
5 watching
14 forks
Language: JavaScript
last commit: about 1 year ago
Linked from 1 awesome list


Backlinks from these awesome lists:

Related projects:

Repository Description Stars
sindresorhus/cli-cursor Library for controlling the CLI cursor 103
seankay/curtail A utility library for truncating HTML-safe strings within specified boundaries. 32
sindresorhus/string-width Calculates the visual width of a string based on its Unicode characters and formatting options 479
sindresorhus/strip-indent Removes redundant indentation from a string by finding the minimum leading whitespace across all lines. 135
sindresorhus/string-length Corrects string length counting by ignoring astral symbols and ANSI escape codes. 162
sindresorhus/clear-cli A utility script to clear the terminal screen on various platforms. 44
sindresorhus/splice-string A utility function to remove or replace parts of a string 23
sindresorhus/parse-columns-cli Transforms text columns from Unix commands into JSON data for manipulation 66
sindresorhus/windows-cli Tools for querying metadata about the active window on various platforms. 65
sindresorhus/cli-boxes A set of pre-defined terminal boxes and arrow symbols in TypeScript 96
sindresorhus/math-clamp A utility function to limit a value within a specified range 14
sindresorhus/terminal-size A utility to reliably determine the size of the terminal window in command-line applications. 140
sindresorhus/pad-stream Transforms input streams by padding each line with a specified indent 11
sindresorhus/filled-array Creates an array of specified length filled with a given value or function returning values 43
sindresorhus/decamelize Converts camel-cased strings into lowercased ones with a custom separator 238