Node.js includes many built-in modules that we can use directly without installing them manually using npm or yarn. Just use require in CommonJS or import in ES modules to call them.
Here is a complete list of built-in modules:
| Module Name | Description |
|---|---|
| Node.js Assert Module | This module helps us check if things in our code are working as expected. We can compare values and test errors using simple methods. |
| Node.js Buffer Module | This module lets us work with raw binary data. We can create buffers, change them, and convert them into other formats. |
| Node.js Child Process Module | This module helps us run other programs from inside a Node.js app. We can start new processes and interact with them easily. |
| Node.js Crypto Module | This module helps us keep data safe. We can use it to lock and unlock information using secure encryption methods. |
| Node.js Debugger Module | This module helps us find and fix problems in our code. We can stop the code, check values, and follow each step. |
| Node.js DNS Module | This module helps us find the IP address of websites and get other DNS information like mail and name server records. |
| Node.js Events Module | This module helps us create and handle custom events. It lets different parts of the app talk to each other using events. |
| Node.js File System Module | This module helps us read, write, update and delete files and folders. It works with both simple and advanced file tasks. |
| Node.js Net Module | This module helps us create simple servers and clients. It works with network connections and checks IP addresses. |
| Node.js OS Module | This module shows details about the system where our app is running. We can check memory, CPU, and other system information. |
| Node.js Path Module | This module helps us work with file paths. We can join, change, and find parts of paths across different systems. |
| Node.js Punycode Module | This module helps us work with international domain names. It changes special characters into a format that DNS can understand. |
| Node.js Query String Module | This module helps us turn URL query strings into objects and back. It is useful for handling data from web pages. |
| Node.js Require Module | This module lets us bring in other files or packages into our app. It helps us organise code into smaller parts. |
| Node.js StringDecoder Module | This module helps us change buffer data into text. It handles special characters in a better and more accurate way. |
| Node.js Timer Module | This module helps us run code after a wait or again and again. It can delay actions or make things happen often. |
| Node.js TLS/SSL Module | This module helps us keep data safe while sending it over the internet. It lets us build secure connections using encryption. |
| Node.js Util Module | This module gives us helpful tools. We can format text, change callback functions into promises, and show object details. |
| Node.js V8 Module | This module connects to the JavaScript engine inside Node.js. It helps us understand memory use and improve performance. |
| Node.js VM Module | This module helps us run code in a safe space. It is useful when we want to test or limit what code can do. |
| Node.js Web Module | This module helps us build web servers. We can handle requests, send responses, and manage web content without extra tools. |
