Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Lightweight cross-browser helper library that enables you to truncate by the dimensions of a given element

License

Notifications You must be signed in to change notification settings

lironzluf/dynamic-truncator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Truncator

Build Status npm version

A Lightweight cross-browser helper library that enables you to truncate text by the dimensions of a given element.

Example

// element is the HTMLDOMElement
// text (string) is optional and taken from the element if not supplied
var dynamicTruncator = DynamicTruncator(element,text);

Install

npm install --save dynamic-truncator

Contribute

Start by

npm install

And then run with

npm start

About

Lightweight cross-browser helper library that enables you to truncate by the dimensions of a given element

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published