This function will remove the ending zero numbers and add suffixes: k(thousand), m(million), b(billion), t(trillion). _Note_: all decimal numbers will be removed.
Truncate a string to a specific width in the terminal
Truncate string to given length in bytes
Truncate a semver version: `1.2.3` → `1.2.0`
Round a double-precision floating-point number toward zero.
The lodash method `_.truncate` exported as a module.
Truncates precision of GeoJSON coordinates.
Regular expression for matching semver versions
Truncate a JSON string
Truncate HTML and Keep Tags
Truncate text and keep urls safe
A tiny function for truncating a string that may contain ANSI escape sequences.
React component for truncating JSX markup
React component for truncating multi-line spans and adding an ellipsis
Utility components for detecting and responding to content overflow, truncation, and visibility states in the UI.
Unicode aware string truncation that given a max byte size will truncate the string to or just below that size
A tiny function for truncating a string which may containg ANSI escapes, with automatic terminal width detection.
Provides `Truncate`, `MiddleTruncate` and `ShowMore` React components for truncating multi-line spans and adding an ellipsis.
Truncate text for React.js
A zero-dependency, vanilla JavaScript utility to truncate markdown text.
TypeScript definitions for react-truncate
Truncates in the middle.
hast utility to truncate the tree to a certain number of characters
truncate a string with a custom suffix