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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i string-ellipsis

    Weekly Downloads

    2

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • bharathvaj