changeext
v1.2.0
Published
changes the extension of some filename to a new one
Downloads
5
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
License
The MIT license.