RANIARANIA Academy

Core Modules & the File System

Master Node.js core modules to read, write and process files and system resources with confidence. You will use fs, path, os, process and url, handle text and JSON safely, react to events with EventEmitter, and stream large files without exhausting memory.

Watch the free preview

Reading files — synchronous vs asynchronous — free to watch, no account needed.

Node.js BEGINNER · 150 min · Certificate on completion · 3 CPD points

What you'll learn

  • Read, write and process files and system resources using Node.js core modules
  • Choose correctly between synchronous and asynchronous fs operations
  • Build cross-platform paths and inspect the OS and process with path, os and process
  • React to application events by using and extending EventEmitter
  • Stream and buffer large files so memory stays flat regardless of file size

Syllabus

Reading & Writing Files with fs
Reading files — synchronous vs asynchronousFree preview15 min
Writing, appending and JSON files15 min
Paths, URLs & System Resources
The path and url modules15 min
Directories, os and process15 min
Events & the EventEmitter
The events module and EventEmitter15 min
Event patterns — once, removal and errors15 min
Streams & Buffers for Large Files
Buffers and reading large files15 min
Streams and piping data15 min
Lab — 10 Exercises & Solutions
Exercises 1–515 min
Exercises 6–1015 min