insert-module-globals
insert implicit module globals into a module-deps stream
Found 32 results for __filename
insert implicit module globals into a module-deps stream
Access to __filename and __dirname within ECMAScript modules
Fetch the current file and directory path, no matter your environment (Deno, Node.js, Web Browsers, ESM, CJS)
Babel plugin that returns an object containing paths like __dirname and __filename as static values
Easy __dirname and __filename alternatives for ES Modules
provides utilities for nodejs to be able to resolve es modules, such as providing the __dirname and __filename variables
Babel plugin that rewrites __dirname and __filename to static values
Converts module differences in source files between ES and CommonJS.
Polyfills for ESM like __dirname, __filename, etc
Alternatives to `__dirname` and `__filename` when using ES modules.
[](https://github.com/zirkelc/commonjs-shim/actions/workflows/ci.yml) [](https://www.npmjs.com/package
Babel plugin that generates the namespace for creating a logger based on the path of the module
make ESM a bit more commonJS
A micro helper for `import.meta` data
ESM replacements for __dirname and __filename.
You can use __dirname and __filename when using ESM
Babel plugin that returns an object containing paths like __dirname and __filename as static values
A require like function for GJS
Packet to provide a kind of desicion because of __dirname and __filename are deprecated within es6 modules
get import.meta.url for commonJS
Handy function to handle import.meta
This module, require-from-es, makes require, __dirname and __filename work flawlessly in ES-modules.
A utility for easy retrieval of __dirname and __filename in Node.js ES6 modules.
📍 '__dirname' and '__filename' in harmony modules
insert implicit module globals into a module-deps stream
work with esm __filepath and __dirname pathing constants in imports as in commonjs nodejs environment
Polyfill of the `import.meta.dirname` and `import.meta.filename`.
__dirname and __filename in ES Modules without the need for imports
A tiny isomorphic ESM alternative to Node's __filename global.
A fast ESM tools
insert implicit module globals into a module-deps stream
get __dirname, __filename in ESModule project