Ross ROSS = Recommend OSS · open-source software intelligence for agents

dollarshaveclub/shave

💈 Shave is a 0 dep JS plugin that truncates text to fit within an element based on a set max-height ✁ observed · 2026-08-28

github.com/dollarshaveclub/shave · homepage · JavaScript · MIT (permissive) · archived observed · 2026-08-28

Health v2 · maintenance only

10/100

  • Activity 0
  • Release rhythm 35
  • Longevity 100

Flags: no_releases archived

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 3605
  • days_rel: n/a
  • days_push: 2136
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

2086 stars · 122 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Shave is a zero-dependency JavaScript plugin that truncates multi-line text to fit within an HTML element based on a max-height, adding an ellipsis while preserving the original text in a hidden span. This original repository has moved to yowainwright/shave and is maintained there.

Use cases

  • truncate multi-line text with an ellipsis in the browser
  • clamp text to a max height without CSS line-clamp support
  • preserve original text after truncating a headline or card description
  • truncate text in many DOM elements quickly
  • add custom ellipsis strings to truncated text
  • truncate text for non-space-separated languages

When to choose

  • you need lightweight, dependency-free multi-line text truncation
  • you want the original text preserved after truncation
  • you need jQuery/Zepto-compatible truncation or module usage

When to avoid

  • you can use native CSS line-clamp instead
  • you need a maintained repo - use yowainwright/shave instead of this archived location
  • you need server-side or non-DOM text truncation

Facets

plugin · maturity maintenance

ui-components frontend-framework frontend web-development browser text-truncation ellipsis multi-line zero-dependency javascript-plugin nodejs

2 sources

Member repositories

RepositoryRoleHealth v2
dollarshaveclub/shavemain10

For agents

markdown · JSON · MCP: product_card(name="dollarshaveclub/shave")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem