This repository contains comprehensive hands-on examples demonstrating core Node.js concepts and modules. Designed for beginners, it provides practical implementations of Node.js fundamentals including asynchronous programming, system modules, networking, and more. Each file serves as a self-contained learning module with clear explanations of key concepts.
- ✅ Core Module Demonstrations: Practical examples for all major Node.js modules (fs, http, path, os, dns, etc.)
- ⚡ Asynchronous Programming: Callbacks, Promises, async/await patterns
- 🔌 Event-Driven Architecture: EventEmitter pattern implementation
- 📦 Buffer & Stream Handling: Binary data processing and stream pipelines
- 🌐 Networking: HTTP/TCP servers and clients
- ⚙️ System Interaction: Process management, OS utilities, and environment variables
- 🔍 Debugging Tools: Inspector and diagnostic report generation
- 🧵 Advanced Features: Worker threads, clustering, and zlib compression
└── Learn-Basic-Node-JS/
├── application.log
├── async.js
├── async.mjs
├── buffer-encoding.mjs
├── buffer.mjs
├── cluster.mjs
├── console.mjs
├── debugger.mjs
├── dns.mjs
├── events.mjs
├── file-system.mjs
├── globals.mjs
├── hello-world.js
├── http-client.mjs
├── http-server.mjs
├── net-client.mjs
├── net-server.mjs
├── os.mjs
├── path.mjs
├── process.mjs
├── readline.mjs
├── report.json
├── report.mjs
├── require-function.js
├── standard-library.mjs
├── stream.mjs
├── target.log
├── timer-promise.mjs
├── timer.mjs
├── url.mjs
├── util.mjs
├── worker-main.mjs
├── worker.mjs
├── zlib-compress.mjs
├── zlib-compress.mjs.txt
└── zlib-decompress.mjsLEARN-BASIC-NODE-JS/
__root__
debugger.mjs ❯ REPLACE-MEstream.mjs ❯ REPLACE-MEasync.js ❯ REPLACE-MEnet-server.mjs ❯ REPLACE-MEevents.mjs ❯ REPLACE-MEnet-client.mjs ❯ REPLACE-MEbuffer.mjs ❯ REPLACE-MEhttp-server.mjs ❯ REPLACE-MEzlib-compress.mjs.txt ❯ REPLACE-MEbuffer-encoding.mjs ❯ REPLACE-MEworker.mjs ❯ REPLACE-MErequire-function.js ❯ REPLACE-MEpath.mjs ❯ REPLACE-MEhttp-client.mjs ❯ REPLACE-MEtimer.mjs ❯ REPLACE-MEfile-system.mjs ❯ REPLACE-MEworker-main.mjs ❯ REPLACE-MEutil.mjs ❯ REPLACE-MEasync.mjs ❯ REPLACE-MEurl.mjs ❯ REPLACE-MEcluster.mjs ❯ REPLACE-MEglobals.mjs ❯ REPLACE-MEreadline.mjs ❯ REPLACE-MEconsole.mjs ❯ REPLACE-MEzlib-decompress.mjs ❯ REPLACE-MEreport.mjs ❯ REPLACE-MEdns.mjs ❯ REPLACE-MEreport.json ❯ REPLACE-MEos.mjs ❯ REPLACE-MEprocess.mjs ❯ REPLACE-MEhello-world.js ❯ REPLACE-MEzlib-compress.mjs ❯ REPLACE-MEtimer-promise.mjs ❯ REPLACE-MEstandard-library.mjs ❯ REPLACE-ME
Before getting started with Learn-Basic-Node-JS, ensure your runtime environment meets the following requirements:
- Programming Language: JavaScript
Install Learn-Basic-Node-JS using one of the following methods:
Build from source:
- Clone the Learn-Basic-Node-JS repository:
❯ git clone https://github.com/yogaarrd/Learn-Basic-Node-JS- Navigate to the project directory:
❯ cd Learn-Basic-Node-JS