Implemented CLI tool that encode and decode a text by Caesar cipher.
CLI tool accept 4 options (short alias and full name):
- -s, --shift: a shift
- -i, --input: an input file
- -o, --output: an output file
- -a, --action: an action encode/decode
Usage example:
$ node src/root -a encode -s 7 -i "./input.txt" -o "./output.txt"
$ node src/root --action encode --shift 7 --input plain.txt --output encoded.txt
$ node src/root --action decode --shift 7 --input decoded.txt --output plain.txt
input.txt
This is secret. Message about "_" symbol!
output.txt
Aopz pz zljyla. Tlzzhnl hivba "_" zftivs!