README
dots
Truncate string
Install
$ npm install --save dots
Usage
const dots = require('dots');
dots('unicorn', 4);
//=> 'uni…'
License
MIT © Sindre Sorhus
Truncate string
<script type="module">
import dots from 'https://cdn.skypack.dev/dots';
</script>
Truncate string
$ npm install --save dots
const dots = require('dots');
dots('unicorn', 4);
//=> 'uni…'
MIT © Sindre Sorhus