Search results
32 packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
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)
- __dirname
- __filename
- commonjs
- deno
- deno-edition
- deno-entry
- denoland
- directory
- dirname
- ecmascript
- es2022
- es5
- esm
- export-default
- View more
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
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
Babel plugin that generates the namespace for creating a logger based on the path of the module
[](https://github.com/zirkelc/commonjs-shim/actions/workflows/ci.yml) [](https://www.npmjs.com/package
ESM replacements for __dirname and __filename.
Alternatives to `__dirname` and `__filename` when using ES modules.
make ESM a bit more commonJS
You can use __dirname and __filename when using ESM
A micro helper for `import.meta` data
A require like function for GJS
Handy function to handle import.meta
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
📍 '__dirname' and '__filename' in harmony modules