insert implicit module globals into a module-deps stream
Node.js + Gjs + Deno module that returns the current script dirname and filename. Similar to __dirname
and `__filename` but also works in CommonJs and ES modules.
Access to __filename and __dirname within ECMAScript modules
Babel plugin that returns an object containing paths like __dirname and __filename as static values
Fetch the current file and directory path, no matter your environment (Deno, Node.js, Web Browsers, ESM, CJS)