Node.js Built-in Modules

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 NameDescription
Node.js Assert ModuleThis 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 ModuleThis module lets us work with raw binary data. We can create buffers, change them, and convert them into other formats.
Node.js Child Process ModuleThis 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 ModuleThis module helps us keep data safe. We can use it to lock and unlock information using secure encryption methods.
Node.js Debugger ModuleThis module helps us find and fix problems in our code. We can stop the code, check values, and follow each step.
Node.js DNS ModuleThis module helps us find the IP address of websites and get other DNS information like mail and name server records.
Node.js Events ModuleThis 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 ModuleThis module helps us read, write, update and delete files and folders. It works with both simple and advanced file tasks.
Node.js Net ModuleThis module helps us create simple servers and clients. It works with network connections and checks IP addresses.
Node.js OS ModuleThis module shows details about the system where our app is running. We can check memory, CPU, and other system information.
Node.js Path ModuleThis module helps us work with file paths. We can join, change, and find parts of paths across different systems.
Node.js Punycode ModuleThis module helps us work with international domain names. It changes special characters into a format that DNS can understand.
Node.js Query String ModuleThis module helps us turn URL query strings into objects and back. It is useful for handling data from web pages.
Node.js Require ModuleThis module lets us bring in other files or packages into our app. It helps us organise code into smaller parts.
Node.js StringDecoder ModuleThis module helps us change buffer data into text. It handles special characters in a better and more accurate way.
Node.js Timer ModuleThis 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 ModuleThis module helps us keep data safe while sending it over the internet. It lets us build secure connections using encryption.
Node.js Util ModuleThis module gives us helpful tools. We can format text, change callback functions into promises, and show object details.
Node.js V8 ModuleThis module connects to the JavaScript engine inside Node.js. It helps us understand memory use and improve performance.
Node.js VM ModuleThis 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 ModuleThis module helps us build web servers. We can handle requests, send responses, and manage web content without extra tools.
Review Your Cart
0
Add Coupon Code
Subtotal