Renamer replace chain plugin to set the case of one or more files and/or directories. See this tutorial to learn how to use renamer plugins.
Possible values: camel
, kebab
, lower
, upper
, snake
and start
. It uses the lodash methods by the same name.
$ npm install -g renamer renamer-case
Example usage. Remove the --dry-run
option to rename the files on disk.
$ tree -N
.
├── One one
└── One two
0 directories, 2 files
$ renamer --chain renamer-case --case camel --dry-run *
✔︎ one one → oneOne
✔︎ one two → oneTwo
Rename complete: 1 of 1 files renamed.
$ tree -N
.
├── oneOne
└── oneTwo
0 directories, 2 files
© 2018-21 Lloyd Brookes [email protected].