changeext2
v1.2.7
Published
changes the extension of some filename to a new one
Downloads
3
Readme
Changes the extension of some filename to a new one。
Installation
Install it as a command line tool via npm -g
.
npm install changeext -g
Execution
$ changeext --help // print help information
$ changeext txt js // change 'txt' to 'js'
$ changeext -i js -t txt // change 'js' to 'txt'
// or with directory
$ changeext -d /home/test/ -i js -t txt
// or loop for directory
$ changeext -d /home/test/ -i js -t txt -l
$ changeext txt js -r // change file extension with random name
$ changeext txt js -e // encode the file or decode,decode info is fixed with 0xff
$ changeext txt js -s 10 //change ext and rename file start 10
License
The MIT license.