renamulon

Bulk file renamer for typescript and javascript files

Usage no npm install needed!

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

README

Renamulon

What is it?

This is a bulk file renamer for nodejs projects with typescript or javascript

Usage

npx renamulon <directory> [-f format] [-x extensions] [-r] [-d] [-g]

# EXAMPLE

npx renamulon src -f snake -x ts tsx --dry -r

Options:

  • <directory> specifies the directory to start the file renaming. REQUIRED
  • --format, -f is an option that specifies the format style for the file names. The options are kebab, camel, pascal, and snake. REQUIRED
  • --ext, -x is an option that specifies the list of file extensions to include in the renaming. The default value is js jsx ts tsx.

Flags:

  • --dry, -d is an optional flag. No changes will be made on the system if true. The default value is false.
  • --use-git, -g is an optional flag. Renaming will be done with git mv instead of mv if true. The default value is false.
  • --remove-dots, -r is an optional flag. It specifies whether dots in file names should be left untouched or formatted out (This does not include the dot before the file extension). The efault value is false.

Testing

npm run test

Build

npm run build