Node.js fs, path & os Modules Tutorial | Node.js Course #3
Oct 30, 2026 · 0 views
Part of Node.js & Express.js Full Course | Backend Development for Beginners to AdvancedNode.js fs, path & os Modules Tutorial – Lecture 3 of the Node.js & Express Full Course, a free Node.js and Express.js tutorial for beginners.
Learn Node.js fs module, Node.js path module, Node.js os module with hands-on code examples for backend JavaScript development.
Lecture 3 covers three core Node.js modules you will use in every project: fs for reading and writing files with promises, path for building cross-platform file paths, and os for system information. We finish by building a small file-organizer script.
What you'll learn
• fs/promises: readFile, writeFile, appendFile, mkdir, readdir
• Error handling with try/catch and ENOENT
• path.join, path.resolve, basename, extname
• os: cpus, totalmem, freemem, homedir
• Building a file organizer script
Chapters
00:00 Intro
00:49 Reading and writing files with fs/promises
02:10 Folders and error handling
03:27 The path module
04:47 The os module
06:01 Project: file organizer
07:02 Recap
07:37 Next: Events, streams & buffers
Links
Altered or synthetic content: The presenter visuals and narration in this video are AI-generated/AI-assisted from the instructor's own photo and an original teaching script. All code, diagrams and teaching content are original.
#NodeJS #ExpressJS #NodeJsFsModule