JSPM

Found 325 results for truncate text

tiny-truncate

A tiny function for truncating a string which may containg ANSI escapes, with automatic terminal width detection.

  • v1.0.5
  • 59.33
  • Published

vue-line-clamp

A simple, fast and lightweight directive for truncating multi line texts using "cross-browser" CSS strategies.

  • v1.3.2
  • 58.61
  • Published

fixed-width-string

Terminal ANSI-aware string fit to fixed width

  • v2.0.0
  • 58.17
  • Published

dtrim

A tool for trimming deep/lenghty javascript structures. Some potential usages are: debugging, logging or data sanitization.

  • v1.12.0
  • 57.31
  • Published

vue-line-clamp-3

A vue 3 port of the original vue-line-clamp

  • v1.0.1
  • 57.25
  • Published

hast-util-truncate

hast utility to truncate the tree to a certain number of characters

  • v2.0.0
  • 56.82
  • Published

ng2-truncate

This package has been moved to [@yellowspot/ng-truncate](https://www.npmjs.com/package/@yellowspot/ng-truncate)

  • v1.3.17
  • 55.39
  • Published

utf8-binary-cutter

truncate UTF-8 strings to a given binary size

  • v0.9.2
  • 54.83
  • Published

react-truncate-list

Truncate a list of elements with a symbol or component of your choice

  • v1.0.3
  • 53.24
  • Published

prototyped.js

Common typescript ready prototypes available in both CommonJS and ECMAScript

  • v3.0.5
  • 52.52
  • Published

text-clamp-for-vue3

A Vue 3 component for clamping text with customizable expand/collapse functionality

  • v1.0.9
  • 52.21
  • Published

dotdotdot-js

Dotdotdot is a javascript plugin for truncating multiple line content with an ellipsis.

  • v4.1.0
  • 49.78
  • Published

read-smore

A simple read more / read less feature in vanilla js

  • v2.5.1
  • 49.72
  • Published

html-ellipsis

truncates a html string without messing up the tags

  • v2.0.16
  • 48.28
  • Published

truncate-element

With this package, you can make any changes you want on the text. Don't worry about the framework. It is a custom element and is compatible with all JavaScript frameworks.

  • v2.4.1
  • 48.16
  • Published

cuttr

Cuttr is a javascript / jQuery plugin that truncates multi-line string content with multiple truncation methods and custom ellipsis.

  • v1.4.3
  • 47.34
  • Published

mdast-excerpt

Build an excerpt from a markdown AST

  • v0.0.10
  • 47.02
  • Published

smart-truncate

A small library that truncates a string. It can insert or append an ellipsis at any desired position of the truncated result.

  • v1.0.1
  • 46.74
  • Published

json-truncate

A way to truncate a json object.

  • v3.0.0
  • 45.95
  • Published

htmlsave

HTML save string utilities

  • v3.0.0
  • 45.75
  • Published

clampify

Trims multi line text and adds ellipsis in the end of it

  • v1.2.1
  • 45.46
  • Published

downsize-cjs

Tag-safe truncation for HTML and XML. Works by word!

  • v1.1.2
  • 43.59
  • Published

math-truncate

Rounds a numeric value toward zero.

  • v1.0.0
  • 43.23
  • Published

just-truncate

truncate a string with a custom suffix

  • v2.2.0
  • 42.23
  • Published

shorten-url

omit parts of a url for friendlier display

  • v1.1.0
  • 41.54
  • Published

obj-walker

Walk or map over objects in a depth-first preorder or postorder manner.

  • v2.4.0
  • 39.37
  • Published

crop-url

Truncate a url so that it doesn't appear so long visually

  • v4.0.1
  • 39.06
  • Published

react-truncated-chips

A headless component to implement a truncated chips based on parent container/screen size for users! Small bundle size of 2.1kb but can create super powerful UI experiences with a simple-to-use API. ![](assets/chips-demo.gif)

  • v1.1.4
  • 39.04
  • Published

react-description-box

Customizable React component that can shorten long text using str_shorten library for better display

  • v1.0.1
  • 38.89
  • Published

react-width-control

A React component for setting minimum width and maximum width

  • v1.1.3
  • 38.03
  • Published

cirbuf

A tiny and fast circular buffer

    • v1.0.2
    • 37.44
    • Published

    truncate-evenly

    Truncate strings in an array to the maximum total length evenly.

    • v1.0.3
    • 36.83
    • Published

    p2p-schema

    A set of utilities for managing Prisma database schemas, seeding, and maintenance operations for the Procure-to-Pay system

    • v1.0.126
    • 36.63
    • Published

    vue-text-truncate

    Vue component - Omits the text that exceeds the specified height

    • v1.0.3
    • 36.22
    • Published

    to-width

    The essential building block for command line tables: truncate & pad strings to given width, taking care of wide characters, accents and ANSI colors

    • v1.2.1
    • 36.13
    • Published

    vue3-line-clamp

    A simple, fast and lightweight vue 3 directive for truncating multi line texts.

    • v1.0.2
    • 35.93
    • Published

    ng-text-truncate-patched

    Angular directive to truncate and expand text by it length. forked from ng-text-truncate by Pavel Konan

    • v1.0.1
    • 35.65
    • Published

    react-read-more

    React component for truncating multi-line spans and adding an ellipsis

    • v1.0.0
    • 35.15
    • Published

    react-native-truncation-text

    A Text extension React Native component that includes onTruncationChange to enable reading more

    • v1.0.0
    • 35.12
    • Published

    chop-lines

    A React component which truncates lines of HTML.

    • v1.15.7
    • 34.36
    • Published

    procbay-schema

    A set of utilities for managing Prisma database schemas, seeding, and maintenance operations for the Procure-to-Pay system

    • v1.0.19
    • 34.18
    • Published

    react-auto-truncate-box

    A React component for automatically truncating text with an ellipsis and optional toggle functionality.

      • v1.0.0
      • 33.66
      • Published

      text-truncator

      Universal library that makes a lot of text truncated in a small parent container.

      • v1.3.0
      • 32.67
      • Published

      react-row-ellipsis

      The package will allow you to easily cut a text to the indicated amount of lines

      • v2.1.2
      • 32.58
      • Published

      friendly-truncate

      Human-friendly truncation preferring word boundaries and the middle of the string.

      • v1.3.0
      • 32.21
      • Published

      ellipsisis

      Truncates text string at spaces, then adds ellipsis at the end.

      • v1.0.2
      • 31.96
      • Published

      openai-tokens

      A service for calculating, managing, truncating openai prompt tokens

      • v2.3.6
      • 31.70
      • Published

      truncate-url

      Truncate a URL to a specific length

      • v2.1.0
      • 31.19
      • Published

      ngx-cut

      Angular directives for cutting texts

      • v3.0.0
      • 28.81
      • Published

      shrink-path

      Utility to shrink file paths to a given length.

      • v0.3.1
      • 28.80
      • Published

      extra-fs

      Useful additions to inbuilt fs module.

      • v3.3.1
      • 27.97
      • Published

      tweet-truncator

      Truncate contents of tweet to 140 chars.

      • v3.0.2
      • 27.82
      • Published

      xrg-utils

      A modern collection of reusable utility functions for JavaScript and TypeScript, designed to simplify everyday development tasks.

      • v1.0.8
      • 27.50
      • Published

      @fiquu/shorten

      Shortens a string (truncate) optionally keeping whole words.

      • v1.0.7
      • 27.11
      • Published

      react-truncatable

      A React component that truncates text based on available space and supports multiline. Perfect for creating article previews, blog snippets, product card descriptions and many more.Compatible with Next 13

      • v1.0.6
      • 26.80
      • Published

      @minga/text-clipper

      Fast and correct clip functions for HTML and plain text.

        • v1.2.2
        • 26.75
        • Published

        dots

        Truncate string

        • v0.1.0
        • 25.29
        • Published

        pixel-width-truncate

        Fits text to any width by secretly measuring it with an invisible element.

        • v1.0.3
        • 25.14
        • Published

        truncate-markup-string

        Truncates a string to a charLimit, ignoring specified markup tags, with an optional "pretty" ellipsis ending.

        • v1.0.2
        • 24.93
        • Published

        @kuoruan/text-clamp

        Clamps an HTML element by adding ellipsis to it.

        • v1.1.1
        • 24.91
        • Published

        advanced-pad

        Left and right string padding with advanced features.

        • v1.0.6
        • 24.61
        • Published

        string-toolkit-pro

        A TypeScript-ready string utility library.

          • v2.1.2
          • 24.59
          • Published

          short-numbers

          Make short numbers from long numbers

          • v0.1.1
          • 24.43
          • Published

          truncate-stream

          stream which truncates input after N bytes

          • v1.0.2
          • 24.10
          • Published

          react-shears

          Trim text with ease!

          • v1.0.3
          • 23.89
          • Published

          ng-custom-pipe

          An Angular Library, that gives you a hussle free experience on data operation using pipes

          • v1.2.1
          • 23.58
          • Published

          trimcate

          convert long text into a previewable short text with with a start length and an end length

          • v1.0.2
          • 22.24
          • Published

          tablur

          Easily create tables for your cli.

          • v1.2.1
          • 22.10
          • Published

          html-truncate-ts

          TypeScript library for truncating HTML strings while preserving HTML tags and structure

          • v0.1.3
          • 21.82
          • Published

          smarter-truncate

          A smart text truncation component for React with Tailwind CSS

          • v0.0.4
          • 21.70
          • Published

          @hugoalh/string-overflow

          A module to truncate the string with the specify length; Safe with the emojis, URLs, and words.

          • v2.1.1
          • 21.46
          • Published

          ellipsis-angular

          A simple ellipsis directive for Angular 15+ that cuts content and adds '…' character if HTML content is overflowed.

          • v1.1.4
          • 21.26
          • Published

          ember-truncate-4elements

          A generic component used to truncate text to a specified number of lines.

          • v0.3.4
          • 21.17
          • Published

          nor-fs

          Asynchronous file system library with chainable Q promises for Node.js

          • v1.0.0
          • 20.78
          • Published

          text-truncation

          Truncates the text of multiple elements based on the height of their container

          • v1.0.5
          • 20.73
          • Published

          string-truncate

          Truncate a string with a custom separator in the middle (tru…ate), end (trunca…) or at any index (t…ncate).

          • v1.0.0
          • 20.57
          • Published

          html-truncator

          truncate html to a specified length but maintain the structure

            • v1.0.17
            • 20.48
            • Published

            string-formatter-js

            A collection of useful string formatting utilities

              • v1.0.0
              • 20.30
              • Published

              twitter-utils

              Twitter / tweet utils that I find myself reusing often.

              • v0.4.1
              • 20.23
              • Published

              ngx-truncate

              truncate for strings angular5

              • v0.0.1
              • 20.20
              • Published

              str_shorten

              Shorten string by character length with word boundary supported

              • v1.0.18
              • 20.04
              • Published

              typeorm-truncate-all

              It simplifies the process of resetting the database to a clean state during testing or development by executing a PostgreSQL query to truncate all tables with cascade.

              • v1.0.8
              • 19.99
              • Published

              truncated-list

              Create a list of items with truncating lines to the specified maximum number

              • v1.0.1
              • 19.85
              • Published

              @procbay/tenant-schema

              A set of utilities for managing Prisma database schemas, seeding, and maintenance operations for the Procure-to-Pay system.

              • v1.0.0
              • 19.75
              • Published

              dynamic-truncator

              A Lightweight cross-browser helper library that enables you to truncate text by the dimensions of a given element.

              • v1.0.5
              • 18.74
              • Published

              truncate-escaped-html

              Converts special characters in a string to the corresponding HTML entities, then truncates the resulting string carefully (HTML entities are not cut in the middle).

              • v1.0.0
              • 18.10
              • Published

              cod-string-magic

              A powerful and lightweight npm library for string manipulation.

              • v1.0.2
              • 18.10
              • Published

              shavette

              Truncate text to a specified number of lines

              • v1.1.0
              • 18.05
              • Published

              node-truncate-string

              Truncates string with an ellipsis and preserves full word, if needed.

              • v0.0.2
              • 17.03
              • Published

              cutshort

              CutShort is a javascript plugin to create multiline overflow ellipsis easy.

              • v1.0.7
              • 16.33
              • Published

              truncate-vue

              VueJs to truncate string

              • v0.0.2
              • 16.30
              • Published

              text-trans

              A simple string utilities library

                • v1.0.5
                • 15.54
                • Published

                text-smart-trimmer

                A utility library for intelligently trimming text with options for preserving whole words and handling punctuation

                • v1.1.0
                • 15.48
                • Published

                @extra-fs/promises

                Useful additions to inbuilt fs module {promises}.

                • v3.1.4
                • 14.36
                • Published

                @text-middle-ellipsis/vue

                Adaptively fits overflowing string of text to its parent HTML Element container by replacin middle of a string with any ellipsis character of your choice.

                • v0.0.2
                • 13.54
                • Published

                trunkata

                Truncation utility which preserves HTML content and can truncate by lines.

                • v0.2.1
                • 13.46
                • Published

                truncatestring

                A function to shorten strings with options.

                • v2.2.0
                • 13.45
                • Published

                json-truncator

                A utility to truncate JSON arrays or objects.

                  • v1.0.3
                  • 13.36
                  • Published

                  @tutorbook/dotdotdot-js

                  Dotdotdot is a javascript plugin for truncating multiple line content with an ellipsis.

                  • v4.0.12
                  • 13.25
                  • Published

                  auto-ellipsis

                  auto-ellipsis is a React component for truncation when content overlength.

                  • v1.3.0
                  • 13.12
                  • Published

                  angular2-truncate

                  A simple angular2 pipe which truncate strings.

                  • v0.1.3
                  • 12.35
                  • Published

                  limit-characters

                  Limit characters with different criteria

                  • v1.0.3
                  • 12.18
                  • Published

                  triple-dots

                  Triple dots is a javascript plugin for truncating multiple line content with an ellipsis.

                  • v0.0.3
                  • 12.03
                  • Published

                  snug-json

                  A lightweight library for intelligently truncating JSON data, making it more readable and manageable for humans.

                  • v0.0.6
                  • 11.53
                  • Published

                  @annoyingmouse/wc-trim-middle

                  This web component was inspired by Chris Heilmann and does not trim strings that don’t fit the space at the end, but in the middle of the string

                  • v1.0.2
                  • 11.31
                  • Published

                  doorgets-ng-truncate

                  Angular 10 (ngx) truncate module from Directire, Pipe and Service

                  • v2.0.2
                  • 11.23
                  • Published

                  cheese-log

                  A colorful logger with browser-/environment-dependent formatting possibilities, table printing, object depth limiting, string- and array-truncating, etc.

                  • v4.0.1
                  • 11.02
                  • Published

                  pan-lib

                  A lightweight library featuring a collection of small, versatile functions designed to streamline your development experience and enhance productivity.

                  • v1.7.2
                  • 10.50
                  • Published

                  cut-string

                  Cut a string if too long. Support CJK(漢字) and emoji❤️.

                  • v1.0.3
                  • 10.12
                  • Published

                  @azizbecha/strkit

                  strkit is a utility library offering a collection of essential string functions including validation, case conversion, truncation, and more. Ideal for both JavaScript and TypeScript developers to simplify string operations in their applications.

                  • v1.1.1
                  • 9.84
                  • Published

                  smart-url-responsive-link

                  Automatically shorten long URLs for mobile views and improve readability

                  • v1.0.4
                  • 9.56
                  • Published

                  upin-string-utils

                  A collection of utility functions for string operations

                  • v1.0.3
                  • 9.51
                  • Published

                  trnct

                  Truncate all specified vowels from given word unless it is the first character

                  • v1.0.0
                  • 9.51
                  • Published

                  awesome-string

                  The ultimate JavaScript string library

                  • v1.1.1
                  • 9.40
                  • Published

                  @cityads/react-truncate

                  React component for truncating multi-line spans and adding an ellipsis

                  • v3.0.0
                  • 9.03
                  • Published

                  superbstring

                  Superbstring is a versatile JavaScript package that provides a comprehensive set of functions to manipulate strings for both frontend and backend applications.

                  • v2.1.2
                  • 8.70
                  • Published

                  ng-trunk8

                  angular fork of trunk8

                  • v0.2.2
                  • 8.51
                  • Published

                  s3-empty-bucket

                  Library and CLI to quickly empty AWS S3 buckets.

                  • v1.0.0-alpha.8
                  • 8.23
                  • Published

                  blogdownsize

                  Tag-safe truncation for HTML and XML. Works by word!

                  • v0.1.0
                  • 8.17
                  • Published

                  truncated.js

                  A plugin for effeciently & semantically truncating text

                  • v0.1.1
                  • 8.05
                  • Published

                  limit-stream

                  A stream that truncates to a limit

                  • v2.0.0
                  • 7.89
                  • Published

                  truncate-x

                  Truncate a string to a maximum specified length.

                  • v4.1.2
                  • 7.81
                  • Published

                  custom-truncate

                  Javascript string truncate using custom method

                  • v0.9.3
                  • 7.78
                  • Published

                  string-truncator

                  Over-engineered string truncation for web UI's

                  • v2.0.18
                  • 7.73
                  • Published

                  @jonigata/retracker

                  Retracker is a development tool for Node.js that helps you manage and resume long-running processes.

                  • v0.0.7
                  • 7.73
                  • Published

                  transform-string

                  Transform any string using properties CSS like

                  • v0.0.1
                  • 7.57
                  • Published

                  jsweetman-react-truncate

                  React component for truncating multi-line spans and adding an ellipsis forked from https://github.com/One-com/react-truncate

                  • v2.1.8
                  • 7.49
                  • Published

                  ng-truncate-link

                  you have a directive and a filter. You can use this directive for both a link and a simple text. with the filter you have, you can simply truncate the text.

                  • v1.1.2
                  • 7.19
                  • Published

                  ez-string-toolkit

                  A simple and easy-to-use string utility library with essential string manipulation functions

                  • v1.0.2
                  • 7.06
                  • Published

                  react-truncate-plus

                  React component for truncating multi-line spans and adding an ellipsis

                  • v2.3.4
                  • 7.00
                  • Published

                  truncate-people

                  Facebook-like truncate function for text by number of people

                  • v2.0.0
                  • 6.77
                  • Published

                  react-truncate-forked

                  React component for truncating multi-line spans and adding an ellipsis

                  • v2.3.13
                  • 6.57
                  • Published

                  hubot-chunkify

                  A Hubot script which splits up messages longer than a predefined length

                  • v2.0.1
                  • 6.16
                  • Published

                  trim-uri

                  Truncate long URI/URLs for nicer logging or reporting

                  • v0.1.0
                  • 6.01
                  • Published

                  truncate-path

                  Smart and effective path truncation.

                  • v1.0.3
                  • 5.91
                  • Published

                  azunt

                  A modular utility library by Azunt, including timezone helpers, emoji-safe text truncation, ellipsis styling, and unified UI utilities.

                  • v1.1.1
                  • 5.87
                  • Published

                  truco

                  Truncate strings.

                  • v1.3.1
                  • 5.76
                  • Published

                  @myorm/myorm

                  Provides an easy way to interact with a database by creating contexts connected to tables in your databases.

                  • v0.4.15
                  • 5.72
                  • Published

                  string-operations

                  This library will do string operations like replace, truncate, pad and many more etc.

                  • v0.1.4
                  • 5.01
                  • Published

                  simple-uteals

                  A simple library for string and number utilities

                  • v1.0.2
                  • 5.00
                  • Published

                  string-trans

                  A simple string utilities library

                    • v1.0.1
                    • 5.00
                    • Published

                    strtoolkit

                    A lightweight toolkit for common string manipulation tasks.

                      • v0.4.0
                      • 4.95
                      • Published

                      clamps

                      A lightweight, Vanilla JS fallback for browsers without -webkit-line-clamp support.

                      • v1.0.1
                      • 4.26
                      • Published

                      gulp-truncate

                      Gulp utility module for truncating files

                        • v1.0.0
                        • 3.87
                        • Published

                        trunc

                        Trunc club

                        • v0.0.1
                        • 3.79
                        • Published

                        ember-cli-truncate

                        The default blueprint for ember-cli addons.

                          • v0.0.0
                          • 3.79
                          • Published

                          @bongione/react-truncate

                          React component for truncating multi-line spans and adding an ellipsis

                          • v2.3.2
                          • 3.64
                          • Published

                          godspeed-string-utils

                          A TypeScript utility library for string manipulation

                            • v1.0.0
                            • 3.64
                            • Published

                            hubot-longtext

                            A Hubot script for handling long messages by returning a link to an online paste containing the message.

                            • v3.1.0
                            • 2.57
                            • Published

                            simply-truncate

                            truncate a string with a custom suffix, it does only that, and it does it well

                            • v1.0.0
                            • 2.22
                            • Published

                            react-truncate-sway-fork

                            React component for truncating multi-line spans and adding an ellipsis

                            • v2.4.6
                            • 2.22
                            • Published

                            react-truncate-ext

                            React component for truncating multi-line spans and adding an ellipsis

                            • v2.1.15
                            • 2.22
                            • Published

                            truncate-files-in-directory

                            Truncate all filenames in a directory. Make potential duplicate filenames web safe.

                            • v1.0.0
                            • 2.22
                            • Published

                            drop-stream2

                            Drop beginning bytes in a stream

                            • v1.0.2
                            • 2.19
                            • Published

                            strman.truncate

                            The [strman](https://github.com/dleitee/strman) method `truncate` exported as a [Node.js](https://nodejs.org/) module.

                            • v2.0.0
                            • 2.19
                            • Published

                            smart-url-shorten-react

                            Automatically shorten long URLs for mobile views and improve readability

                              • v1.0.2
                              • 2.19
                              • Published

                              word-trimwidth

                              Truncate a list of words with a specified width

                              • v1.0.2
                              • 2.19
                              • Published

                              truncated-text-lib

                              React hook for truncated text and clipboard copy

                                • v1.0.0
                                • 0.00
                                • Published

                                pragi-string

                                A package to modify strings

                                  • v1.1.3
                                  • 0.00
                                  • Published

                                  truncated-tooltip-text

                                  A React component to truncate text and show full content on hover using a tooltip

                                    • v1.0.3
                                    • 0.00
                                    • Published