Search results

31 packages found

Fetch the current file and directory path, no matter your environment (Deno, Node.js, Web Browsers, ESM, CJS)

published 3.4.0 7 months ago
M
Q
P

Converts module differences in source files between ES and CommonJS.

published 1.0.0-alpha.4 a month ago
M
Q
P

get import.meta.url for commonJS

published 1.0.0 a month ago
M
Q
P

A module to bring back `__dirname` and `__filename` within 2 lines of code.

published 2.0.3 2 months ago
M
Q
P

work with esm __filepath and __dirname pathing constants in imports as in commonjs nodejs environment

published 1.0.0 5 months ago
M
Q
P

ESM replacements for __dirname and __filename.

published 0.1.7 2 years ago
M
Q
P

__dirname and __filename in ES Modules without the need for imports

published 1.1.0 8 months ago
M
Q
P

Polyfills for ESM like __dirname, __filename, etc

published 1.0.1 a year ago
M
Q
P

Easy __dirname and __filename alternatives for ES Modules

published 1.1.2 8 days ago
M
Q
P

make ESM a bit more commonJS

published 1.0.1 a year ago
M
Q
P

Access to __filename and __dirname within ECMAScript modules

published 1.1.1 a year ago
M
Q
P

Alternatives to `__dirname` and `__filename` when using ES modules.

published 1.1.1 2 years ago
M
Q
P

A utility for easy retrieval of __dirname and __filename in Node.js ES6 modules.

published 0.1.1 9 months ago
M
Q
P

insert implicit module globals into a module-deps stream

published 7.2.1 4 years ago
M
Q
P

insert implicit module globals into a module-deps stream

published 8.0.1 5 years ago
M
Q
P

A tiny isomorphic ESM alternative to Node's __filename global.

published 1.0.1 7 months ago
M
Q
P

This module, require-from-es, makes require, __dirname and __filename work flawlessly in ES-modules.

published 1.0.3 a year ago
M
Q
P

📍 '__dirname' and '__filename' in harmony modules

published 1.1.0 5 years ago
M
Q
P

Babel plugin that rewrites __dirname and __filename to static values

published 1.1.0 8 years ago
M
Q
P

provides utilities for nodejs to be able to resolve es modules, such as providing the __dirname and __filename variables

published 1.0.1 a year ago
M
Q
P