Command line tool that replicates wc – word, line, character, and byte count. Basic solution that answers all the steps as outlined in the project requirements. This assumes just one file, can be modified to accomodate multiple files.
-c: outputs the number of bytes in a file-l: outputs the number of lines in a file-w: outputs the number of words in a file-m: outputs the number of characters in a file
Initialize the project with npm link
>ccwc <option> <file>
# count <file>Default option - i.e. no options are provided
>ccwc <file>
# lineCount wordCount biteSize <file>Able to read from standard input if no filename is specified.
>cat <file> | ccwc <option>
# count