# FrDH/dotdotdot-js

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

Repository: https://github.com/FrDH/dotdotdot-js
Canonical: https://ross.abutalabs.com/products/dotdotdot-js
Homepage: http://dotdotdot.frebsite.nl/
Language: TypeScript
License: NOASSERTION
License Family: other
Last push: 2026-07-14T14:12:36+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 92, release rhythm 8, longevity 100
- inputs: {"age_days": 4698, "days_push": 50, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1708, forks 330 (observed 2026-08-28T04:05:25.467705+00:00)

## What it is
dotdotdot is a JavaScript/TypeScript plugin that truncates multiple-line text content on webpages with an ellipsis. It handles HTML markup safely, supports optional 'read more' anchors, and updates responsively as the browser resizes.

## Use cases
- truncate multi-line text with an ellipsis in the browser
- add a read more link after truncated content
- responsively re-truncate text when the viewport resizes
- truncate HTML content without breaking markup
- replace CSS text-overflow for multiline text

## When to choose
- you need cross-browser multiline ellipsis truncation with HTML support
- you want a small dependency-free vanilla JS plugin
- you need a 'read more' anchor appended to truncated text

## When to avoid
- you only need single-line truncation (CSS text-overflow suffices)
- you need server-side or Node-based text truncation
- you require a permissively licensed library for redistribution (CC-BY-4.0)

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, frontend-framework
- domain: web-development, frontend
- platform: browser
- tags: ellipsis, text-truncation, multiline, responsive, typescript, vanilla-js, nodejs

## Member repositories
- FrDH/dotdotdot-js (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:25.467705+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:36:59.178436+00:00, confidence not recorded.
  - readme: https://github.com/FrDH/dotdotdot-js (fetched 2026-08-28T04:05:25.467705+00:00, sha 6b5c9f75ab7a)
  - homepage: http://dotdotdot.frebsite.nl/ (fetched 2026-08-29T11:11:37.092132+00:00, sha 89c67194f347)
  - registry_npm: https://registry.npmjs.org/dotdotdot-js (fetched 2026-08-29T11:11:37.101171+00:00, sha 16e2919eadd3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
