1.0.2 • Published 6 years ago
text-clamp v1.0.2
text-clamp
Installation
You can use this package on the server side as well as the client side.
Node.js:
npm install text-clamp
API
clamp(element, options)
Usage
import {clamp} from 'text-clamp'
clamp(element, {
clamp:2
})