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 and ES2015 module specifications
- Using ES2015/2016/2017 coding practices in Node.js
- Using the ES6 module format in Node.js code
- Understanding how Node.js finds modules
- The npm package management system
So, let's get on with it.