How to get the directory of the currently executing script in Node.js?
Originally Published Here ๐!
To get the directory of the currently executing script, you can use the __dirname environment variable in Node.js
For example, let's say we have a file called myscript.js inside a directory called scripts.
Inside this my...
melvingeorge-me.hashnode.dev1 min read