Miss any of our Open RFC calls?Watch the recordings here! »

add-ellipsis

1.0.1 • Public • Published

add-ellipsis Build Status

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

Install

npm i add-ellipsis

DownloadsWeekly Downloads

5

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar