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-10-12
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-10-22. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3654
- days_rel: n/a
- days_push: 2185
- n_releases_24m: 0
Adoption not part of the score
2084 stars ยท 121 forks observed ยท 2026-10-12
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
- readme: https://github.com/dollarshaveclub/shave ยท fetched 2026-10-12 ยท 7eb412be506b
- homepage: https://github.com/yowainwright/shave ยท fetched 2026-08-29 ยท b0b5268b5702
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dollarshaveclub/shave | main | 10 |
For agents
markdown ยท JSON ยท MCP: product_card(name="dollarshaveclub/shave")
Data as of 2026-10-19T08:05:51.212177+00:00 ยท Report a problem