How to get the current home directory of the user in Node.js?
Originally Published Here ๐!
To get the current user home directory, you can use the homedir() method from the os module in Node.js.
/* Get home directory of the user in Node.js */
// import os module
const os = require("os");
// check the availab...
melvingeorge-me.hashnode.dev1 min read