Search results
39 packages found
get the file directory from import.meta.url
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
A tiny isomorphic ESM alternative to Node's __dirname global.
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
make ESM a bit more commonJS
insert implicit module globals into a module-deps stream
A simple module to get the path with __dirname
📍 '__dirname' and '__filename' in harmony modules
A module to bring back `__dirname` and `__filename` within 2 lines of code.
ESM replacements for __dirname and __filename.
__dirname and __filename in ES Modules without the need for imports
Get a path in the __dirname
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
Access to __filename and __dirname within ECMAScript modules
Easy __dirname and __filename alternatives for ES Modules
A utility for easy retrieval of __dirname and __filename in Node.js ES6 modules.
insert implicit module globals into a module-deps stream
Alternatives to `__dirname` and `__filename` when using ES modules.
convert __dirname from CommonJS into ESModule System
Polyfills for ESM like __dirname, __filename, etc