use-clamp-text

react hook to clamp multiline text to a given height in a responsive way (in < 2.5kb)

shave

Shave is a javascript plugin that truncates multi-line text within a html element based on set max height

textfit

A fast, jQuery-free text sizing component that quickly fits single and multi-line text to the width (and optionally height) of its container.

svg-text-size

Get a {width, height} given a text string (or array) and svg attributes