$ npm install dots
Truncate string
$ npm install --save dots
const dots = require('dots'); dots('unicorn', 4); //=> 'uni…'
MIT © Sindre Sorhus