string-ellipsis

0.1.0 • Public • Published

Built with Grunt Build Status Code Climate

string-ellipsis

String truncation using ellipsis

Motivation

Inspired by Sindre Sorhus

Installation

$ npm install --save string-ellipsis

Usuage

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i string-ellipsis

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • bharathvaj