renamer-case
v2.0.2
Published
Renamer plugin to set the case of a filename
Downloads
343
Readme
renamer-case
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.
Install
$ npm install -g renamer renamer-case
Use
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].