add-ellipsis
v1.0.1
Published
Cut off a string to a specified length and add an ellipsis
Downloads
8
Maintainers
Readme
add-ellipsis
Cut off a string to a specified length and add an ellipsis
Install
$ npm install --save add-ellipsis
Usage
var addEllipsis = require('add-ellipsis');
addEllipsis('unicorns');
//=> unicorns…
addEllipsis('Lorem ipsum dolor sit amet', 21);
//=> 'Lorem ipsum dolor sit…'
License
MIT © Arthur Verschaeve