CLI tool for node.js that will encode and decode a text by Caesar cipher. RS School task.
Clone or download this repository for use CLI tool on your computer.
For installation modules:
npm i
For start use:
$ node index.js --shift <number> --action <encode || decode> [--input <path to input file>] [--output <path to output file>]
Options:
- -s, --shift: a shift (requered option)
- -a, --action: an action encode/decode (default decode)
- -i, --input: an input file
- -o, --output: an output file
Use:
node index.js -s 7 -a encode
node index.js -s 8 -a encode -i path-to-file.txt
node index.js -s 8 -a encode -i path-to-file.txt -o path-to-result.txt