dachshund

Convert files with underscores to dashes (and vice versa).

Usage no npm install needed!

<script type="module">
  import dachshund from 'https://cdn.skypack.dev/dachshund';
</script>

README

Dachshund

npm version Build Status

Convert the underscores in a file/directory name to dashes or convert the dashes to underscores.

Usage

npm install -g dachshund

Installing dachshund globally adds two commands udash and dunder to your PATH.

Convert underscores to dashes:

udash file_name
#=> file_name => file-name

Convert dashes to underscores:

dunder file_name
#=> file-name => file_name