Search
current-module-paths
Access to __filename and __dirname within ECMAScript modules
v1.1.2 URL:
https://unpkg.com/current-module-paths@1.1.2/index.js
Open
Browse Files
__dirname
__filename
module
paths
modules
ESM
ECMAScript
import
commonjs
cjs
mjs
dirname-filename-esm
Easy __dirname and __filename alternatives for ES Modules
v1.1.2 URL:
https://unpkg.com/dirname-filename-esm@1.1.2/index.js
Open
Browse Files
node
esm
__dirname
__filename
filedirname
Fetch the current file and directory path, no matter your environment (Deno, Node.js, Web Browsers, ESM, CJS)
v3.4.0 URL:
https://unpkg.com/filedirname@3.4.0/index.cjs
Open
Browse Files
__dirname
__filename
commonjs
deno
deno-edition
deno-entry
denoland
directory
dirname
ecmascript
es2022
es5
esm
export-default
file
filename
import
mjs
modules
node
path
paths
polyfill
typed
types
typescript
insert-module-globals
insert implicit module globals into a module-deps stream
v7.2.1 URL:
https://unpkg.com/insert-module-globals@7.2.1/index.js
Open
Browse Files
__filename
__dirname
global
process
module-deps
browser-pack
browserify
@knighted/module
Converts module differences in source files between ES and CommonJS.
v1.0.0-alpha.4 URL:
https://unpkg.com/@knighted/module@1.0.0-alpha.4/dist/module.js
Open
Browse Files
transform
es module
commonjs
module
require
import.meta
__dirname
__filename
conversion
tool
build