npm
(Node Package Manager). They provide additional functionality, such as databases, authentication, utilities, and more.Node.js comes with several core modules that provide out-of-the-box functionality. Some common core modules include:
fs
: File system operations (reading, writing, manipulating files).http
: Handling HTTP requests and creating web servers.path
: Utilities for handling and transforming file paths.os
: Information about the operating system.events
: Working with event-driven programming and handling custom events.util
: Utility functions (e.g., formatting, inspecting objects).crypto
: Cryptographic functionalities for data encryption and decryption.fs
(File System) Module in Node.jsThe fs
module in Node.js allows you to interact with the file system, such as reading, writing, updating, and deleting files.