0.2.4 • Published 10 months ago

@gauravnumber/move v0.2.4

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

move

GitHub tag (latest SemVer) Twitter Follow

mv command doesn't support renaming file (adding an index/number) when file already exists, so I created move.

move doesn't have any dependencies.

Install

node install -g @gauravnumber/move

Usage

move <source_path> <destination_path>

Example

Initial Folder Structure

.
├── 1.txt
├── 2.txt
├── 3.txt
├── 4.txt
├── 5.txt
└── 6.txt

Execute the command below

move 1.txt 2.txt

2.txt file already exists, so move appends an index to the filename. After running above command, the folder structure looks like this.

.
├── 2_1.txt
├── 2.txt
├── 3.txt
├── 4.txt
├── 5.txt
└── 6.txt
0.2.4

10 months ago

0.2.3

12 months ago

0.2.2

12 months ago

0.2.1

3 years ago

0.2.0

3 years ago