Solve User-Reported Issues
Find Issues Faster
Optimize Conversion and Adoption
Start monitoring for free
Sam is a former Googler, now CTO of the Australian energy startup Gridcognition, with an interest in all things web.
1 Stories by
Alternatives to __dirname in Node.js with ES modules
Bring Node inline with ESM using the __dirname and __filename variables that allow you to import source files outside of your code.
March 1, 2022
5 min read
Write a Comment...