Alternative for __dirname in Node when using ECMAScript modules
As I searched the Stack Overflow I came across several solutions that suggest using import.meta.url with fileURLToPath, however what was not mentioned is that the purpose of fileURLToPath is beyond "resolving" URLs with file://, as the documentation ...
web-developer.hashnode.dev2 min read