Skip to main content
Deno 2 is finally here 🎉️
Learn more
->
Dismiss
Products
Open Source
Deno
Modern runtime for JavaScript and TypeScript
Fresh
Web framework designed for the edge
JSR
TypeScript-first ESM package registry
Commercial
Deno for Enterprise
Enterprise support for runtime projects
Deploy
Easy serverless hosting for your JavaScript projects
Subhosting
Securely run untrusted code in a scalable sandbox
Docs
Modules
Standard Library
JSR
Node.js & npm
Current path
deno.land/x
Community
Discord
GitHub
X
YouTube
Mastodon
Blog
Search…
⌘K
Module
x
/
dirname
/
mod.ts
The Deno implementation of __dirname of Node
martonlederer/dirname
Version
Latest
1.1.2
Menu
mod.ts
(default module)
f
default
types.ts
I
IMakeLoc
I
IMeta
import
*
as
dirname
from
"https://deno.land/x/dirname@1.1.2/mod.ts"
;
Functions
f
default