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
desm
get the file directory from import.meta.url
v1.3.1 URL:
https://unpkg.com/desm@1.3.1/index.js
Open
Browse Files
esm
import
url
dirname
__dirname