esm-consts
work with esm __filepath and __dirname pathing constants in imports as in commonjs nodejs environment
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
provides utilities for nodejs to be able to resolve es modules, such as providing the __dirname and __filename variables
Access to __filename and __dirname within ECMAScript modules
Alternatives to `__dirname` and `__filename` when using 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.
This module, require-from-es, makes require, __dirname and __filename work flawlessly in ES-modules.
Converts module differences in source files between ES and CommonJS.
Polyfills for ESM like __dirname, __filename, etc
get __dirname, __filename in ESModule project
ESM replacements for __dirname and __filename.