@blossm/trim-string

Trims a string to a fixed length and optionally adds three dots to the end.

Usage no npm install needed!

<script type="module">
  import blossmTrimString from 'https://cdn.skypack.dev/@blossm/trim-string';
</script>

README

Trims a string to a fixed length and optionally adds three dots to the end.