Skip to content

asboy2035/FileReformat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FileReformat 💖✨

FileReformat is a recursive file renaming utility that helps you slay your messy file names. It converts them into consistent formats, normalizes extensions, and gives you a preview before renaming anything.

Features 🌟

node RenameFiles.js <directory-to-rename>
  • Convert file names to different formats: [--format=pascal|snake|dash|camel|screaming]
    • pascal (default) → MyFileName.txt
    • camelmyFileName.txt
    • snakemy_file_name.txt
    • dashmy-file-name.txt
    • screamingMY_FILE_NAME.TXT
  • Normalizes file extensions by default (JPG → jpeg, PNG → png, etc.)
  • Ignore dotfiles/folders to keep them safe (.gitignore, .idea)
  • Preview changes before renaming: --show
    • Also saves a LastTask.json in the script directory for continuation
  • Rename files recursively: --rename
  • Continue a previous task (--continue)
    • Reads LastTask.json, prompts for confirmation, renames files, then deletes the JSON

Installation

Make sure you have Node.js installed.

git clone https://github.com/asboy2035/FileReformat
cd FileReformat
npm i

About

Reformat file names into PascalCase, camelCase, snake_case, SCREAMING_CASE, or dash-case.

Topics

Resources

License

Stars

Watchers

Forks