Search results
275 packages found
Fast, intelligent Javascript text truncation
stream which truncates input after N bytes
Truncate HTML based on characters, words or paragraphs. Has the ability to strip tags.
Truncate a semver version: `1.2.3` → `1.2.0`
A tiny function for truncating a string which may containg ANSI escapes, with automatic terminal width detection.
Human-friendly truncation preferring word boundaries and the middle of the string.
A service for calculating, managing, truncating openai prompt tokens
A colorful logger with browser-/environment-dependent formatting possibilities, table printing, object depth limiting, string- and array-truncating, etc.
A function to shorten strings with options.
- truncate
- shorten
- cutting
- string
- options
- ellipsis
- helper
- function
- method
- vanilla js
- no dependencies
- independent
- es6
- es2015
Excerpting text of given words or characters from HTML.
Truncates a string to a charLimit, ignoring specified markup tags, with an optional "pretty" ellipsis ending.
Provides `Truncate`, `MiddleTruncate` and `ShowMore` React components for truncating multi-line spans and adding an ellipsis.
Useful additions to inbuilt fs module.
- extra
- fs
- accessAsync
- appendFileAsync
- chmodAsync
- chownAsync
- copyFileAsync
- cpAsync
- lchownAsync
- linkAsync
- lstatAsync
- lutimesAsync
- mkdirAsync
- mkdtempAsync
- View more
Truncate a string in the middle to a specified length.
Round a single-precision floating-point number toward zero.
- stdlib
- stdmath
- mathematics
- math
- math.trunc
- trunc
- truncate
- round
- integer
- number
- special function
- special
- function
- polyfill
Truncate a list of words with a specified width
Truncate a string to a specified length.
React component for adding an ellipsis to the middle of a line of text.
Round a numeric value to the nearest power of two toward zero.
Round a numeric value to the nearest power of 10 toward zero.