Over-engineered string truncation for web UI's
Layout specific text truncator
truncate html to a specified length but maintain the structure
Truncate contents of tweet to 140 chars.
Get the visual width of a string - the number of columns required to display it
Escape RegExp special characters
A utility package to parse strings
Universal library that makes a lot of text truncated in a small parent container.
Indent each line in a string
Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
Modify strings, generate sourcemaps
A Lightweight cross-browser helper library that enables you to truncate text by the dimensions of a given element.
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
LZ-based compression algorithm
Strip leading whitespace from each line in a string
Light ECMAScript (JavaScript) Value Notation - human written, concise, typed, flexible
Native Access to MacOS FSEvents
A minimal UTF8 implementation for number arrays.
Wordwrap a string with ANSI escape codes
CLI arguments parser. Native port of python's argparse.
Matches strings against configurable strings, globs, regular expressions, and/or functions
A minimal path module to resolve Unix, Windows and URL paths alike.
Generate a unique character string suitible for use in files and URLs.
A minimal base64 implementation for number arrays.
Ruby tool for truncating HTML strings keeping a valid HTML markup
Wants to truncate an HTML string properly? This gem is for you.
Truncate strings with fullwidth characters and ANSI codes. Characters can be omitted from the start, middle, end or both ends.
Elipsa is a tool for conditionally and smartly truncating a string to a specific length. It pays attention to word-boundaries, and tries to give you as much of the string as it can, while still fitting your parameters.
String truncator methods
Truncate HTML to a specific bytesize, while keeping valid markup
Truncate strings by word count, character count, or sentence count with word-boundary awareness. Includes HTML-safe mode that properly closes open tags and handles multi-byte characters correctly.
Provides useful string utils like "truncate to word". Compatible with ruby >= 1.8. Benefits from active_support if available on ruby < 1.9. Tested with: * ruby 1.8.7 (2010-04-19 patchlevel 253) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2010.02 *
A set of methods for working with strings such as align, truncate, wrap and many more.
StringStubber allows you to truncate Strings, while preserving whole-words.
Stubber allows you to truncate Strings, while preserving whole-words.
Extends String to truncate by character length or number of words.