Displaying 1 to 20 from 22 results

jQuery.dotdotdot - jQuery.dotdotdot, advanced cross-browser ellipsis for multiple line content.

  •    Javascript

Dotdotdot is a jQuery plugin for truncating multiple line content on a webpage. It uses an ellipsis to indicate that there is more text than currently visible. Optionally, the plugin can keep a "read more" anchor visible at the end of the content, after the ellipsis.When using the jQuery.dotdotdot plugin, you don't need to worry about your HTML markup, the plugin knows its way around most elements. It's responsive, so when resizing the browser, the ellipsis will update on the fly.

trunk8 - jQuery Truncation Plugin

  •    Javascript

trunk8 is an intelligent text truncation extension to jQuery. When applied to a large block of text, trunk8 will cut off just enough text to prevent it from spilling over. Unlike conventional truncation that just limits the character length of text, trunk8 measures the content area for spill-over and intelligently chooses the text that best fits in the given space.

voca - The ultimate JavaScript string library

  •    Javascript

The Voca library offers helpful functions to make string manipulations comfortable: change case, trim, pad, slugify, latinise, sprintf'y, truncate, escape and much more. The modular design allows to load the entire library, or individual functions to minimize the application builds. The library is fully tested, well documented and long-term supported. Voca can be used in various environments.




dotdotdot-js - dotdotdot.js, advanced cross-browser ellipsis for multiple line content.

  •    TypeScript

Dotdotdot is a javascript plugin for truncating multiple line content on a webpage. It uses an ellipsis to indicate that there is more text than currently visible. Optionally, the plugin can keep a "read more" anchor visible at the end of the content, after the ellipsis. When using dotdotdot to truncate HTML, you don't need to worry about your HTML markup, the plugin knows its way around most elements. It's responsive, so when resizing the browser, the ellipsis will update on the fly.

Downsize - Tag safe text truncation for HTML and XML!

  •    Javascript

Downsize is designed to handle bad markup, and should count words and characters accurately in spite of it. But it won't hold your hand.It does close outstanding open tags for you, but leaves erroneous close-tags for which the opening tag couldn't be found or was erroneously nested.


cli-truncate - Truncate a string to a specific width in the terminal

  •    Javascript

Gracefully handles ANSI escapes. Like a string styled with chalk. It also supports Unicode surrogate pairs and fullwidth characters.Text to truncate.

stringz - :100: Zero dependency unicode-aware string tools for NodeJS

  •    Javascript

A really small, performant, zero-dependency, unicode-aware library for working with Strings in Node.js. Javascript has a serious problem with unicode. Even ES6 can’t solve the problem entirely since some characters like the new colored emojis are three bytes instead of two bytes. Sometimes even more! "๐Ÿ‘๐Ÿฝ".length returns 4 which is totally wrong (hint: it should be 1!). ES6's Array.from tried to solve this, but that even fails: Array.from("๐Ÿ‘๐Ÿฝ") returns ["๐Ÿ‘", "๐Ÿฝ"] which is incorrect. This library tries to tackle all these problems with a mega RegExp. Read More Here.

truncate - Truncate string

  •    Javascript

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

ellipsize - Ellipsizes a string at the nearest whitespace character near the end of allowed length

  •    Javascript

Ellipsizes a string near a word boundary. An ellipsized text looks much better if the ellipsize was added at the end of the last full word instead of somewhere in the middle - especially if there are very few characters remaining.

truncate.js - fast, intelligent javascript text truncation

  •    Javascript

Truncate.js does it's best to intelligently truncate through HTML. However, there are a few cases where it fails, mostly because the text height cannot be easily calculated. The truncate position is also very difficult when set to middle and with nested elements.

text-clipper - Fast and correct clip functions for HTML and plain text

  •    Javascript

Fast and correct clip functions for HTML and plain text. Written by Arend van Beelen jr. @ Speakap.

React-Text-Truncate - Truncate multi-lines text for all browsers base on react.js

  •    Javascript

You must trigger update manually. No! IE 10 and below are dead according to Microsoft post.

react-truncate-html - Truncate multiline HTML with React

  •    Javascript

As mentioned above, only use react-truncate-html when you want to truncate HTML Use react-truncate for everything else. etc...

vue-truncate-collapsed - A simple component that truncates your text and adds a 'Read More/Show Less' clickable

  •    Javascript

A simple Vue 2 Component that's truncate your text and adds a "Read Me/Show Less" clickable. Clone or download the component and save in your own project.

vue-line-clamp - "Cross browser" solution for the poorly supported `-webkit-line-clamp` css property regarding to multi-line text truncation

  •    Javascript

A simple, fast and lightweight directive for truncating multi line texts using "cross-browser" CSS strategies. NOTE: the argument passed to the directive must be a number, and its used as the line-height value for non-webkit browsers, as part of the fallback method. In some upcoming version it may be able to detect this value automatically.