string-ellipsis
String truncation using ellipsis
Motivation
Inspired by Sindre Sorhus
Installation
$ npm install --save string-ellipsis
Usuage
let strTruncate = ; let str = "hello npm this is my second npm module";console;//=> "he..."
License
MIT © Bharathvaj Ganesan