@clampy-js/clampy
Version:
Clamps an HTML element by adding ellipsis to it if the content inside is too long.
26 lines (15 loc) • 1.15 kB
Markdown
# clampy
### Clamps an HTML element by adding ellipsis to it if the content inside is too long.
[](https://travis-ci.org/clampy-js/clampy)
[](https://github.com/clampy-js/clampy/issues)
[](https://github.com/clampy-js/clampy/blob/master/LICENSE)
[]()
This is basically a fork of the (unfortunately abandoned) project [Clamp.js](https://github.com/josephschmitt/Clamp.js) partially converted to Typescript and bundled using the excellent [Typescript library starter](https://github.com/alexjoverm/typescript-library-starter) from [Alex Jover](https://github.com/alexjoverm).
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](./dist/docs/).
## Examples
A demo is available [here](./demo/).