npm install
node cat [options] [filepaths] [key]
option to remove big line break (-s
)
option to add line number to non empty lines (-b
)
option to add line numbers to all lines (-n
)
option to encrypt the file (-e
) (AES-128 bit)
option to decrypt the file (-de
) (AES-128 bit)
option to compress the file (-c
)
option to decompress the file (-d
)
option to create new file (-touch
)
option to view tree structure of directory (-tree
)
1- node cat <filepath>
=> displays content of the file in the terminal 🗄
2- node cat <filepath1 filepath2 filepath3...>
=> displays content of all files in the terminal in (concatenated form) in the given order. 🗃
3- node cat -s <filepath>
=> convert big line breaks into a singular line break 📜
4- node cat -n <filepath>
=> give numbering to all the lines 🔢
5- node cat -b <filepath>
=> give numbering to non-empty lines 🔢📜
6- node cat -e <filepath> <key>
=> encrypt file with Military Grade(AES-128) bit encryption 🔒
7- node cat -de <filepath> <key>
=> decrypt file with Military Grade(AES-128) bit encryption 🔓
8- node cat -c <filepath>
=> Compresses the text based file using Huffman Coding 🗜
9- node cat -d <filepath>
=> Decompresses file compressed file 🗄
10- node cat -touch <filepath>
=> Creates new file/folder at the specified path 🆕
11- node cat -tree <filepath>
=> Draws the path tree 🌳
12- We can mix and match some of the options.
1- If file entered is not found then it gives file does not exist error.
2- -n
and -b
are 2 options which are mutually exclusive so if user types both of them together only the first enter option should work.
3- -s
and any or both -n
and -b
present then -s
will be executed first and then -n
and -b
according second rule.
4- Advanced options like encryption/decryption can not be mixed matched.
5- For Encryption and decryption 16 character (128 bit) key is required.
6- Compression is done using Huffman coding.
7- Can only decompress file which is compressed using this software only.
8- Touch command can create new folder or files.
9- filepath in tree command is optional.