A tiny function for truncating a string which may containg ANSI escapes, with automatic terminal width detection.
A tiny function for truncating a string that may contain ANSI escape sequences.
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`
The lodash method `_.truncate` exported as a module.
Truncates precision of GeoJSON coordinates.
Regular expression for matching semver versions
Truncate a JSON string
A tiny invariant function
Truncate HTML and Keep Tags
Truncate text and keep urls safe
React component for truncating multi-line spans and adding an ellipsis
React component for truncating JSX markup
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
Provides `Truncate`, `MiddleTruncate` and `ShowMore` React components for truncating multi-line spans and adding an ellipsis.
A tiny warning function
Truncate text for React.js
TypeScript definitions for react-truncate
Truncates in the middle.
Tiny Casing utils
A fast, lightweight LRU (Least Recently Used) cache for JavaScript with O(1) operations and optional TTL support.
hast utility to truncate the tree to a certain number of characters