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

Latest commit

 

History

History
33 lines (23 loc) · 711 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 711 Bytes

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