{"repo":"75lb/renamer","free":true,"listed":false,"github":"https://github.com/75lb/renamer","clone":"git clone https://github.com/75lb/renamer.git","description":"Rename files in bulk.","language":"JavaScript","stars":558,"topics":["renamer","rename-files","regular-expression","javascript","glob-pattern","nodejs","rename","filesystem","cross-platform","move"],"license":"MIT","category":"cli-tools","readme_excerpt":"Upgraders, please read the release notes. Please share feedback and improvement ideas here. renamer Renamer is a command-line utility to help rename files and folders. It is flexible and extensible via plugins. Disclaimer Always run this tool with the --dry-run option until you are confident the results look correct. Synopsis The examples below use double quotes to suit Windows users. MacOS & Linux users should use single quotes. As input, renamer takes a list of filenames or glob patterns plus some options describing how you would like the files to be renamed. This trivial example will replace the text jpeg with jpg in all file and directory names in the current directory. As above but operates on all files and folders recursively. Fine-tune which files to process If no filenames or patterns are specified, renamer will look for a newline-separated list of filenames on standard input. This approach is useful for crafting a specific input list using tools like find . This example operates on files modified less than 20 minutes ago. Same again but with a hand-rolled input of filenames and glob patterns. Create an input text file, e.g. files.txt : Then pipe it into renamer. Rename using regular expressions Simple example using a regular expression literal. The case-insensitive pattern /one/i matches the input file ONE.jpg , renaming it to two.jpg . Rename using JavaScript For more complex renames, or if you just prefer using code, you can write a replace function. Create a modul","default_branch":null,"files":null,"tree":[],"storefront":"/r/75lb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/75lb/renamer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}