What are modules?
These are essential to programming with Node.js as modules are reusable throughout the whole Node. js application and break down complex functionalities into simpler chunks. Each module in Node. js is self-contained, meaning it has its own context and it does not interfere with other modules or the global scope.
Node.js contains 3 types of modules:
- Core Modules
- Local Modules
- Third Party Modules
Also known as built-in modules, these modules include the most basic functionalities of Node.js. Core modules are compiled into its binary distribution and loaded automatically when Node.js is installed.
Below is a table of the most important core modules:
Includes classes, methods, and events to create a Node.js http server
To parse URL strings
To handle URL query strings
To handle file paths
Classes, methods, and events to handle file I/O
To access programmer utility functions
Copyright © 2021 Code 4 Tomorrow. All rights reserved. The code in this course is licensed under the MIT License. If you would like to use content from any of our courses, you must obtain our explicit written permission and provide credit. Please contact email@example.com for inquiries.