Universal library that makes a lot of text truncated in a small parent container.
Layout specific text truncator
Text-cut is a simple React text truncator that limits the display of text based on a maximum set length for words. When the text exceeds this length, a reader can toggle the text expansion button to view the full text or less.
The text surrounded by the component will be truncated. Anything surrounded by the component could be evaluated as text.
Truncate contents of tweet to 140 chars.
Over-engineered string truncation for web UI's
truncate html to a specified length but maintain the structure
Elegant terminal spinner
A Lightweight cross-browser helper library that enables you to truncate text by the dimensions of a given element.
Advanced html to plain text converter
The node core libs for in browser usage.
text-segmentation ==============
Streaming text decoder that preserves multibyte Unicode characters
List of text file extensions
Text Decoder
Check if a file path is a text file
Minify URLs by converting them from absolute to relative.
This package contains rich text helpers for Lexical.
Use text-decoration in it's shorthand form in CSS
align-text with ANSI support for CLIs
hast utility to get the plain-text value of a node according to the `innerText` algorithm
URL utils for humans
borderless text tables with alignment
An ini encoder/decoder for node
Text transformations such as truncation, wrapping, aligning, indentation and grouping of words.
Helper methods to JSON and String to make-do with truncated JSON text.
This is a Rails gem for Truncate Html Text
Like Rails' TextHelper#truncate, except with hover text.
Ever wanted to truncate some text till the Ntn character only to find a word or sentence was cut in half? SmartTruncate fixes that.
Gem Happiness created with Ruby, used to simplify text for a better view and design (short-text, truncate, minitext)
Trunction implements intelligent truncation of HTML text.
Wrap text to a specific width at word boundaries. Supports indentation, hanging indent, ANSI escape code-safe width calculation, and truncation with configurable omission strings.
Extension to monospace_text_formatter Gem. Treats HTML-like tags as zero-length and ensures they are properly closed during text truncation/splitting and reopened after line wrapping.
When i use rspec to do a lot of test, each time database is inserted data and truncate table, when tables grows the speed grow down too much. At first i convert the db engine from innodb to memory in db/seed.rb file. After that i write this gem to do the job for more app. Notice: Tables those contain text col can not convert to memory engine, so i convert those colums to string first. So if there are test case use too long string to insert, there would be trouble.
Pure-Ruby facade over Hugging Face `tokenizers` and OpenAI `tiktoken_ruby` that maps ruby_llm model identifiers (gpt-4o, llama-3, mistral, ...) to the correct tokenizer and exposes a small API for counting, analyzing, and truncating text against a model's context window. Includes an opt-in approximation backend for models with no published tokenizer (Claude).
Send SMS messages using the CellForce API