insert-module-globals
insert implicit module globals into a module-deps stream
insert implicit module globals into a module-deps stream
Babel plugin that returns an object containing paths like __dirname and __filename as static values
Babel plugin that rewrites __dirname and __filename to static values
Fetch the current file and directory path, no matter your environment (Deno, Node.js, Web Browsers, ESM, CJS)
get the file directory from import.meta.url
Easy __dirname and __filename alternatives for ES Modules
A simple module to get the path with __dirname
Babel plugin that returns an object containing paths like __dirname and __filename as static values
A micro helper for `import.meta` data
insert implicit module globals into a module-deps stream
Join the path with current directory.
Get a path in the __dirname
You can use __dirname and __filename when using ESM
Handy function to handle import.meta
📍 '__dirname' and '__filename' in harmony modules
A require like function for GJS
Suggest paths for where to save what, trying to follow OS-specific conventions.
Add any path to node's require path
Lazy define current directory
insert implicit module globals into a module-deps stream