insert-module-globals
insert implicit module globals into a module-deps stream
Found 42 results for __dirname
insert implicit module globals into a module-deps stream
get the file directory from import.meta.url
Access to __filename and __dirname within ECMAScript modules
Babel plugin that returns an object containing paths like __dirname and __filename as 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
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.
A tiny isomorphic ESM alternative to Node's __dirname global.
Polyfills for ESM like __dirname, __filename, etc
A simple module to get the path with __dirname
[](https://github.com/zirkelc/commonjs-shim/actions/workflows/ci.yml) [](https://www.npmjs.com/package
make ESM a bit more commonJS
ESM replacements for __dirname and __filename.
Join the path with current directory.
A micro helper for `import.meta` data
📍 '__dirname' and '__filename' in harmony modules
Alternatives to `__dirname` and `__filename` when using ES modules.
Add any path to node's require path
convert __dirname from CommonJS into ESModule System
Suggest paths for where to save what, trying to follow OS-specific conventions.
Babel plugin that returns an object containing paths like __dirname and __filename as static values
insert implicit module globals into a module-deps stream
The most used and necessary variable for projects in node js
A utility for easy retrieval of __dirname and __filename in Node.js ES6 modules.
Handy function to handle import.meta
A module for using the __dirname with the "module" type for node
Lazy define current directory
You can use __dirname and __filename when using ESM
Get a path in the __dirname
insert implicit module globals into a module-deps stream
get import.meta.url for commonJS
get __dirname, __filename in ESModule project
Packet to provide a kind of desicion because of __dirname and __filename are deprecated within es6 modules
__dirname and __filename in ES Modules without the need for imports
A fast ESM tools
Polyfill of the `import.meta.dirname` and `import.meta.filename`.
Fast ESModules __dirname alternative
work with esm __filepath and __dirname pathing constants in imports as in commonjs nodejs environment
This module, require-from-es, makes require, __dirname and __filename work flawlessly in ES-modules.
A require like function for GJS