renamulon
v0.0.5
Published
Bulk file renamer for typescript and javascript files
Downloads
2
Maintainers
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 arekebab
,camel
,pascal
, andsnake
. REQUIRED--ext
,-x
is an option that specifies the list of file extensions to include in the renaming. The default value isjs jsx ts tsx
.
Flags:
--dry
,-d
is an optional flag. No changes will be made on the system if true. The default value isfalse
.--use-git
,-g
is an optional flag. Renaming will be done withgit mv
instead ofmv
if true. The default value isfalse
.--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 isfalse
.
Testing
npm run test
Build
npm run build