@f0c1s/ellipsis
v2018.11.13
Published
Creates ellipsis strings out of passed input string.
Downloads
1
Readme
Creates ellipsis strings out of passed input string.
Installation npm i @f0c1s/ellipsis
Usage var ellipsis = require('@f0c1s/ellipsis') ellipsis.single('f0c1s', 10) // f0c1s ellipsis.single('f0c1s', 5) // f0c1s ellipsis.single('f0c1s', 4) // f0c1... ellipsis.single('f0c1s', 1) // f...
ellipsis.multiple(['xyz', 'bbc'], 2) // [ 'xy...', 'bb...' ]