Technical requirements
This chapter assumes that you have a recent version of Node.js 22 installed, a Terminal or shell, and an editor of your choice. The code for this chapter is available on GitHub at https://github.com/PacktPublishing/Node.js-Cookbook-Fifth-Edition in the Chapter02
directory.
This chapter will use the CommonJS syntax; refer to Chapter 5 for more information on CommonJS and ECMAScript modules.