Ways Of Dealing with File System (fs) in Node.js
A file is a sequence of bits. we have three different ways to do the same exact thing in nodejs using the file system "fs". We could use:
Promises API (Async)
Callback API (Async)
Synchronous API
const fs = require("fs/promises");
// ******* Promise...
omarsaade.hashnode.dev1 min read