/change-file-case

Script that automates changing all file-names in a folder. Very helpful with folders that contain huge amount of files.

Primary LanguageJavaScriptMIT LicenseMIT

Change File Case

npm version License: MIT

Script that automates changing all file-names in a folder. Very helpful with folders that contain huge amount of files.

Instal

$ npm install change-file-case

Usage

In the command line/terminal:

$ node path-to-index.js directory-to-rename case-code

Supported Cases

  • Uppercase: code => upper
  • Lowercase: code => lower
  • Title Case: code => title
  • Sentence Case: code => sentence
  • Camel Case: code => camel
  • Kebab Case: code => kebab
  • Snake Case: code => snake

Example

Suppose we are in the directory of the index.js and want to convert the files in "anyDir" to uppercase:

$ node index.js ../anyDir upper