Project: lb_wc
Node.js·1 min read·Apr 17, 2025

In Unix, the wc utility displays the number of lines, words, and bytes contained in each input file, or standard input (if no file is specified) to the standard output.
The objective of this project is to write a Node.js script that partially reimplements the wc utility.
General instructions
Here are the general instructions to complete this project:
-
The script must be named
lb_wc.js. -
The script must be written in Node.js.
-
The script must have the following synopsis:
$ node lb_wc.js [-l] [-w] [-c] [file ...]Where: