Apr 9, 2024
Currently, there is a better approach: const __dirname = import.meta.dirname;
https://nodejs.org/api/esm.html#differences-between-es-modules-and-commonjs
Currently, there is a better approach: const __dirname = import.meta.dirname;
https://nodejs.org/api/esm.html#differences-between-es-modules-and-commonjs