🫳🏼 Packages
- Script: A piece of code executed once with the
node command. It imports modules
- A module is a single file that contains JavaScript code.
- A package is a directory containing modules and a
package.json file.
- file provides metadata about the package, such as its name, version, and dependencies.
- package manager : automates managing packages
package-lock.json records exact version of each installed package & dependencies .It helps to build identical dependency tree
📳 Core Modules
node:buffer: Handles binary data.
node:child_process: Runs shell commands or forks processes.
node:cluster: Provides load balancing across workers.
node:crypto: Offers cryptographic operations.
node:fs: Interacts with the file system.
node:os: Accesses OS level data (CPU, memory, etc.).
node:zlib: Provides compression and decompression (gzip, deflate, etc.).
node:http node:net: Creates HTTP/ TCP servers and clients.
node:url: Parses and formats URLs.