Project: lb_wc

Node.js·1 min read·Apr 17, 2025

counter illustration

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:

  1. The script must be named lb_wc.js.

  2. The script must be written in Node.js.

  3. The script must have the following synopsis:

    $ node lb_wc.js [-l] [-w] [-c] [file ...]

    Where: