https://github.com/allienx/myrenamer
Script for renaming files in bulk.
https://github.com/allienx/myrenamer
Last synced: 3 months ago
JSON representation
Script for renaming files in bulk.
- Host: GitHub
- URL: https://github.com/allienx/myrenamer
- Owner: allienx
- Created: 2021-10-11T04:55:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-21T06:04:28.000Z (6 months ago)
- Last Synced: 2025-01-09T05:38:05.037Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 876 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# myrenamer
Script for renaming files in bulk.
## Usage
```sh
Usage: myrenamer [options] [command]Script for renaming files in bulk.
Options:
-V, --version output the version number
-h, --help display help for commandCommands:
run [options] Rename files in according to options
tv [options] Rename TV episode files found in .
help [command] display help for command
```### run (default command)
```sh
Usage: myrenamer run [options]Rename files in according to options
Options:
--dry-run log new file paths without performing any action (default: false)
-r, --recursive find files in nested directories (default: false)
--sort-a-z sort the files alphabetically (default: false)
--no-preserve don't preserve the original file name
-l, --lowercase transform file names to lowercase (default: false)
-p, --prefix add a prefix to each file name
-s, --suffix add a suffix to each file name
-i, --increment add an incremented number suffix to each file name
-h, --help display help for command
```### tv
```sh
Usage: myrenamer tv [options]Rename TV episode files found in .
Options:
--dry-run log new file paths without performing any action (default: false)
-k, --apiKey TMDB API key
-i, --tvId TMDB TV id
-s, --season the season's episodes to rename
-h, --help display help for command
```## Examples
```sh
$ node myrenamer.js --dry-run -r -l dist
[DRY-RUN] dist/bbb.txt -> dist/bbb.txt
[DRY-RUN] dist/aAa.txt -> dist/aaa.txt
[DRY-RUN] dist/CCC.txt -> dist/ccc.txt
[DRY-RUN] dist/dir1/aaA.txt -> dist/dir1/aaa.txt
[DRY-RUN] dist/dir1/dirdir1/AAA.TXT -> dist/dir1/dirdir1/aaa.txt
[DRY-RUN] Renamed 5 files.
✨ Done 0.01s.
```