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
You can use __dirname and __filename when using ESM
Handy function to handle import.meta
📍 '__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
make ESM a bit more commonJS
A utility for easy retrieval of __dirname and __filename in Node.js ES6 modules.
Babel plugin that generates the namespace for creating a logger based on the path of the module
Polyfills for ESM like __dirname, __filename, etc
get import.meta.url for commonJS