text-clamp
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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
})
 

Dependencies (0)

    Dev Dependencies (15)

    Package Sidebar

    Install

    npm i text-clamp

    Weekly Downloads

    4

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • penyuying