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