convert-to-ecmascript-compatible-varname

Given a string of dash-delimited words, return a similar version of the string, but which is camel-cased and otherwise stripped of special characters, whitespace, etc. so that it is usable as an ECMAScript variable.

Usage no npm install needed!

<script type="module">
  import convertToEcmascriptCompatibleVarname from 'https://cdn.skypack.dev/convert-to-ecmascript-compatible-varname';
</script>

README