Subtle difference between __dirname and process.cwd() in node.js
Getting the current working directory(CWD) is one of the basic and most important features in a product. In Node.js, CWD can be obtained with either __dirname variable or process.cwd(). But the output returned by each command differs based on the fol...
Aug 29, 20201 min read84
