text-clamp Installation You can use this package on the server side as well as the client side. Node.js: npm install text-clampAPI clamp(element, options)Usage import {clamp} from 'text-clamp' clamp(element, { clamp:2 })