[go: up one dir, main page]

@clampy-js/clampy
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

clampy

Clamps an HTML element by adding ellipsis to it if the content inside is too long.

Build Status GitHub issues GitHub license npm

This is basically a fork of the (unfortunately abandoned) project Clamp.js partially converted to Typescript and bundled using the excellent Typescript library starter from Alex Jover.

Most fixes from pull requests on the original project were included.

*Note that the following options were removed from the original library:

  • useNativeClamp
  • animate

Documentation

Documentation is available here.

Examples

A demo is available here.

Package Sidebar

Install

npm i @clampy-js/clampy

Weekly Downloads

556

Version

1.0.10

License

MIT

Unpacked Size

2.9 MB

Total Files

68

Last publish

Collaborators

  • alexandre.moore