architeck-format-string

Takes a string and cuts it down the length you choose, optionaity stripping the string of html.

Usage no npm install needed!

<script type="module">
  import architeckFormatString from 'https://cdn.skypack.dev/architeck-format-string';
</script>

README

Takes three parameters

1st param

STRING: Required: This is the string you wish to format

2nd param

NUMBER: This is the max length the string should be

3rd param

BOOLEAN: if the function should strip all html from the string.