Chapter 3. Node.js Modules
Before writing Node.js applications, you must learn about Node.js modules and packages. Modules and packages are the building blocks for breaking down your application into smaller pieces.
In this chapter, we will cover the following topics:
Defining a module
The CommonJS module specification
Using ES-2015 modules in Node.js
Understanding how Node.js finds modules
The npm package management system
So, let's get on with it.