import {addElipsis} from "add-ellipses"
[input] = addElipsis("I am a best software engineer", 10)
[output] = I am a bes...
Custom ellipsis
[input] = addElipsis("I am a best software engineer", 10, ">>>")
[output] = I am a bes>>>
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js. Node.js 0.10 or higher is required.
Installation is done using the
npm install
command:
$ npm install add-ellipses
Follow our installing guide for more information.