kc-strmin

[js] Simple minify (Remove new lines and multiple spaces).

Usage no npm install needed!

<script type="module">
  import kcStrmin from 'https://cdn.skypack.dev/kc-strmin';
</script>

README

STRMin

[js] Simple minify (Remove new lines and multiple spaces).

Install

npm install kc-strmin

Use

var strmin = require('kc-strmin');
var str = strmin(`
Hello      world

This   is my  

content.
`);
console.log(str);