triple-dot

1.0.3 • Public • Published

Triple-dot

This package will give you a short text with triple dots for lengthy text or paragraph.

Example

For Node js

 
var tripleDot = require("triple-dot")
 
tripleDot("Hello World",5)
 
console.log(tripleDot("Hello World",5))
 

For React js

 
import tripleDot from  "triple-dot"
 
console.log(tripleDot("Hello World",5))
 

Output:

    Hello...

Parameters

    1.Text (String)
    2.Length (Number)

Package Sidebar

Install

npm i triple-dot

Weekly Downloads

3

Version

1.0.3

License

ISC

Unpacked Size

1.17 kB

Total Files

3

Last publish

Collaborators

  • iamsvmohan