styled-string-width

measure the width a string will be when rendered in the dom

Usage no npm install needed!

<script type="module">
  import styledStringWidth from 'https://cdn.skypack.dev/styled-string-width';
</script>

README