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.
This module, require-from-es, makes require, __dirname and __filename work flawlessly in ES-modules.
A tiny isomorphic ESM alternative to Node's __filename global.
A module to bring back `__dirname` and `__filename` within 2 lines of code.
make ESM a bit more commonJS
Packet to provide a kind of desicion because of __dirname and __filename are deprecated within es6 modules
Polyfills for ESM like __dirname, __filename, etc