dots-3

2.1.3 • Public • Published

dots-3

Slim down a string with ...

Usage

Install the package...

$ npm i dots-3 --save

...then...

const dots3 = require('dots-3'); // or import dots3 from 'dots-3'
 
dots3('The quick brown fox jumped over the lazy dog.', 9);
// -> The quic…
 
dots3('The quick brown fox jumped over the lazy dog.', 3000);
// -> The quick brown fox jumped over the lazy dog.
 
dots3('What? Is that a monkey for a pet?', 5);
// -> What? …

Hope this package helps you!

Found a bug? Open an issue, or ping me on Discord: Vehmloewff#0714.

Readme

Keywords

Package Sidebar

Install

npm i dots-3

Weekly Downloads

9

Version

2.1.3

License

MIT

Unpacked Size

8.75 kB

Total Files

5

Last publish

Collaborators

  • vehmloewff