» Make grep CLI App in Node.js » 1. Introduction » 1.1 Preparation

Preparation

Install Node.js

See How to install Node.js?.

This project uses node v18.15.0 and npm 9.5.0.

Pick an editor

Pick your favorite editor or use Visual Studio Code.

Learn JavaScript basics

If you're not familiar with JavaScript, you may try this tutorial: "Quick Introduction to JavaScript."

What is a CLI app

See What is a CLI app?.

What is grep

The grep command is a powerful Unix/Linux utility used for searching text patterns within files. It stands for "Global Regular Expression Print." grep allows you to search for a specific pattern or regular expression in a file or a stream of text and print the lines that match the pattern.

Here's a basic usage example:

grep pattern file.txt
Next