Utility CLI tool to quickly rename folders and files based on conventions.
Install the CLI package globally on your system with npm.
$ npm install -g renom
$ renom 'my file_name.txt' # myfilename.txt
$ renom -c 'My File Name.txt' # myFileName.txt
$ renom -k 'My File Name.txt' # My-File-Name.txt
$ renom -s 'My File Name.txt' # My_File_Name.txt
$ renom -w 'My_File_Name.txt' # My File Name.txt
$ renom -h # prints help screen
Use without an option to smash all of the words together, or denote separate words using one of the following options.
Multiple options are not recommended and may have unexpected results.
Changes the file name to camelCase, lowercase first letter, and every subsequent word has a capitalized first letter.
Conflicts with other file names that are all one word:
$ renom -c my-file-name # myFileName
$ renom -c MyFileName # cannot rename MyFileName to myFileName, use mv MyFileName myFileName instead
Changes the file name to kebab-case, putting a dash between each word.
$ renom -k myFileName # my-File-Name
Changes the file name to snake-case, putting an underscore between each word.
$ renom -s myFileName # my_File_Name
Changes the file name to whitespace separated, putting a space between each word.
$ renom -w myFileName # 'my File Name'
Prints these options in a commander.js generated help screen.