string-ellipsis
v0.1.0
Published
String truncation using ellipsis
Maintainers
Readme
string-ellipsis
String truncation using ellipsis
Motivation
Inspired by Sindre Sorhus
Installation
$ npm install --save string-ellipsisUsuage
let strTruncate = require('./index.js');
let str = "hello npm this is my second npm module";
console.log(strTruncate(str,2));
//=> "he..."License
MIT © Bharathvaj Ganesan
