insert-module-globals
insert implicit module globals into a module-deps stream
insert implicit module globals into a module-deps stream
Babel plugin that returns an object containing paths like __dirname and __filename as static values
Babel plugin that rewrites __dirname and __filename to static values
Fetch the current file and directory path, no matter your environment (Deno, Node.js, Web Browsers, ESM, CJS)
Easy __dirname and __filename alternatives for ES Modules
Babel plugin that returns an object containing paths like __dirname and __filename as static values
A micro helper for `import.meta` data
insert implicit module globals into a module-deps stream
Handy function to handle import.meta
You can use __dirname and __filename when using ESM
📍 '__dirname' and '__filename' in harmony modules
A require like function for GJS
insert implicit module globals into a module-deps stream
Use CommonJS globals, such as `__dirname` and `__filename`, in EcmaScript modules.
A fast ESM tools
Packet to provide a kind of desicion because of __dirname and __filename are deprecated within es6 modules
__dirname and __filename in ES Modules without the need for imports
work with esm __filepath and __dirname pathing constants in imports as in commonjs nodejs environment
make ESM a bit more commonJS
Polyfills for ESM like __dirname, __filename, etc