An open API service indexing awesome lists of open source software.

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.

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 command

Commands:
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.
```