insert implicit module globals into a module-deps stream
Node.js + Gjs + Deno module that returns the current script dirname and filename. Similar to `__dirnameand
__filename` but also works in CommonJs and ES modules.
If you are an author of open source repository, you may want to support both CJS and ESM for users since it's a confused period. It's hard to use `__dirnameand
import.meta.url` in one file specially for typescript project.
Access to __filename and __dirname within ECMAScript modules