DEV Community

Cover image for Types of Node Modules
athul jain
athul jain

Posted on

Types of Node Modules

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

Image description

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

Image description

When you work with Node.js, you create local modules that you load and use in your program.

  • Third-Party Modules

Image description

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)