npm explorer

Results for "__dirname"

/

Showing 1-20 of 16,683 packages

current-module-paths

v1.1.3

Access to __filename and __dirname within ECMAScript modules

__dirname__filenamemodulepathsmodules+6 more
3 months ago0/week
Quality100%
Popularity100%
Maintenance100%

dirname-filename-esm

v1.1.2

Easy __dirname and __filename alternatives for ES Modules

nodeesm__dirname__filename

esbuild-plugin-fileloc

v0.0.6

Support __dirname, __filename, __line and additional global variables with esbuild

4 years ago0/week
Quality100%
Popularity100%
Maintenance100%

dirname-shim

v1.0.0

UMD __dirname and __filename browser shim

dirnamebrowserstacktraceUMD

babel-plugin-transform-dirname-filename

v1.1.0

Babel plugin that rewrites __dirname and __filename to static values

babelplugindirnamefilename

tiny-dirname

v1.0.2

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

dirname__dirnamenodeglobal

@subbu963/esm-polyfills

v1.0.1

Polyfills for ESM like __dirname, __filename, etc

nodejsnodepolyfillpolyfills

cross-dirname

v0.1.0

[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.

dirnamecross-platformesmcjs

paths.macro

v3.0.1

Babel plugin that returns an object containing paths like __dirname and __filename as static values

__dirname__filenamebabelbabel-plugin-macros

common-es

v1.1.0

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

__dirname__filenamefilenamedirname

dirfilename

v1.1.1

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

__dirname__filenamedirnamefilename

this-file

v2.0.3

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.

4 years ago0/week
Quality100%
Popularity100%
Maintenance100%

vanipath

v1.0.10

Get __dirname and __filename in ESM & CJS using pure JavaScript

dirnamefilenamepathcross

make-module-env

v1.2.0

Create exports, module, require, __filename, and __dirname variables for any path

4 months ago0/week
Quality100%
Popularity100%
Maintenance100%

@darkobits/fd-name

v0.1.7

ESM replacements for __dirname and __filename.

__dirname__filenamedirnamefilename

path-__dirname

v2.1.0

Get a path in the __dirname

resolvegetpathdir

path-here

v1.1.1

A simple module to get the path with __dirname

pathresolve__dirname
9 years ago

karma-dirname-preprocessor

v0.0.4

karma preprocessor for replace __dirname

karmapreprocessor
7 years ago0/week

core-commonjs

v0.0.1

A polyfill for `require`, `__dirname` and `__filename` in ES modules in Node.js

3 years ago0/week
Quality100%
Popularity100%
Maintenance100%

bit-loader-builtins

v2.0.2

bit-bundler loader plugin for handling nodejs builtin modules, __dirname, and __filename

bit-bundlerbit-loader-plugin
8 years ago0/week
Page 1 of 835
Next
1 years ago0/week
Quality100%
Popularity100%
Maintenance100%
webpack
9 years ago0/week
Quality100%
Popularity100%
Maintenance100%
__dirname
+5 more
9 years ago0/week
Quality100%
Popularity100%
Maintenance100%
1 years ago0/week
Quality100%
Popularity100%
Maintenance100%
esm
+6 more
2 years ago0/week
Quality100%
Popularity100%
Maintenance100%
node
+2 more
3 years ago0/week
Quality100%
Popularity100%
Maintenance100%
base
+11 more
5 years ago0/week
Quality100%
Popularity100%
Maintenance100%
common-es
+3 more
7 months ago0/week
Quality100%
Popularity100%
Maintenance100%
import.meta.url
+1 more
3 years ago0/week
Quality100%
Popularity100%
Maintenance100%
3 weeks ago0/week
Quality100%
Popularity100%
Maintenance100%
cjs
+5 more
3 years ago0/week
Quality100%
Popularity100%
Maintenance100%
__dirname
+1 more
8 years ago0/week
Quality100%
Popularity100%
Maintenance100%
0/week
Quality100%
Popularity100%
Maintenance100%
Quality100%
Popularity100%
Maintenance100%
Quality100%
Popularity100%
Maintenance100%