dynamic-truncator
v1.0.5
Published
A Lightweight cross-browser helper library that enables you to truncate text by the dimensions of a given element.
Maintainers
Readme
Dynamic Truncator
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-truncatorContribute
Start by
npm installAnd then run with
npm start