AI Engineer - Learn how to integrate AI into software applications
Build the Finance Skills That Lead to Promotions, Not Just Certificates
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner tutorial teaches file and directory operations with Node.js, including asynchronous callbacks, promises, async/await, and readable and writable data streams.
Syllabus
Intro
Welcome
Overview
Use the NodeJS docs
How to read a file with Node.js
How to handle uncaught errors
Async example
Path module
How to write to a file with Node.js
How to update a file with Node.js
Nested operations
Callback hell
fsPromises
Replace Callback hell with Async Await
How to delete a file with Node.js
Readstream for large files
Stream data listener
Piping data streams
How to create a directory with Node.js
How to check if a file or directory exists
How to remove a directory with Node.js
Taught by
Dave Gray