Types of Node Modules
linkedin
There are three main types of Node modules that you will work with as a Node.js developer. They include the following.
Built-in modules
Local modules
Third-party modules
- Built-in Modules
Node.js comes with some modules out of the box. These modules are available for use when you install Node.js. Some common examples of built-in Node modules are the following:
http
url
path
fs
os
- Local Modules
When you work with Node.js, you create local modules that you load and use in your program.
- Third-Party Modules
A cool thing about using modules in Node.js is that you can share them with others. The Node Package Manager (NPM) makes that possible.
Top comments (0)