Showing 1-20 of 16,683 packages
Access to __filename and __dirname within ECMAScript modules
Easy __dirname and __filename alternatives for ES Modules
Support __dirname, __filename, __line and additional global variables with esbuild
UMD __dirname and __filename browser shim
Babel plugin that rewrites __dirname and __filename to static values
A tiny isomorphic ESM alternative to Node's __dirname global.
Polyfills for ESM like __dirname, __filename, etc
[Node.js](https://nodejs.org) + [Gjs](https://gjs.guide/) + [Deno](https://deno.land/) module that returns the current script dirname and filename. Similar to `__dirname` and `__filename` but also works in CommonJs and ES modules.
Babel plugin that returns an object containing paths like __dirname and __filename as static values
provides utilities for nodejs to be able to resolve es modules, such as providing the __dirname and __filename variables
Alternatives to `__dirname` and `__filename` when using ES modules.
If you are an author of open source repository, you may want to support both CJS and ESM for users since it's a confused period. It's hard to use `__dirname` and `import.meta.url` in one file specially for typescript project.
Get __dirname and __filename in ESM & CJS using pure JavaScript
Create exports, module, require, __filename, and __dirname variables for any path
ESM replacements for __dirname and __filename.
Get a path in the __dirname
A simple module to get the path with __dirname
karma preprocessor for replace __dirname
A polyfill for `require`, `__dirname` and `__filename` in ES modules in Node.js
bit-bundler loader plugin for handling nodejs builtin modules, __dirname, and __filename