Stop 02 · Node.js FundamentalsTopics · 14/18

File System (fs)

Part of the Backend Developer Roadmap

In short

Node's built-in module for reading, writing and manipulating files on disk — both synchronous and asynchronous (Promise-based) variants.

How to learn this

  1. 1Read and write a file using both `fs.promises` and the callback-based API.
  2. 2Practice watching a directory for changes with `fs.watch`.
  3. 3Learn why you should almost always prefer the async `fs` methods on a server.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge