Node.js Get Current Directory
Introduction
It is common to need the path to your current working directory when working with Node.js scripts. A less obvious detail is understanding the difference between the folder where your script lives (__dirname) and where the process started...
milddev.hashnode.dev3 min read