trim-lines2

Trims every line of a string

Usage no npm install needed!

<script type="module">
  import trimLines2 from 'https://cdn.skypack.dev/trim-lines2';
</script>

README

simple module to let you do this

  trimLines(`
    Oh cool
    this is cool.
  `);

will change to

Oh cool
this is cool.