Search results
32 packages found
Access to __filename and __dirname within ECMAScript modules
Easy __dirname and __filename alternatives for ES Modules
Fetch the current file and directory path, no matter your environment (Deno, Node.js, Web Browsers, ESM, CJS)
- __dirname
- __filename
- commonjs
- deno
- deno-edition
- deno-entry
- denoland
- directory
- dirname
- ecmascript
- es2022
- es5
- esm
- export-default
- View more
A module to bring back `__dirname` and `__filename` within 2 lines of code.
Converts module differences in source files between ES and CommonJS.
insert implicit module globals into a module-deps stream
get import.meta.url for commonJS
Polyfills for ESM like __dirname, __filename, etc
__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
- work with esm __filepath and __dirname pathing constants in imports as in commonjs nodejs environment
- __filename
- __dirname
- constants
- esm
- commonjs
make ESM a bit more commonJS
A utility for easy retrieval of __dirname and __filename in Node.js ES6 modules.
provides utilities for nodejs to be able to resolve es modules, such as providing the __dirname and __filename variables
Babel plugin that returns an object containing paths like __dirname and __filename as static values
- __dirname
- __filename
- babel
- babel-plugin-macros
- base
- extention
- file
- filename
- gitRoot
- npmRoot
- path
- paths
- plugin
- static
- View more
insert implicit module globals into a module-deps stream
Alternatives to `__dirname` and `__filename` when using ES modules.
📍 '__dirname' and '__filename' in harmony modules
A tiny isomorphic ESM alternative to Node's __filename global.
This module, require-from-es, makes require, __dirname and __filename work flawlessly in ES-modules.
Babel plugin that rewrites __dirname and __filename to static values