Skip to main content
ImportMeta.dirname - module - Node documentation
property ImportMeta.dirname

Usage in Deno

import { type ImportMeta } from "node:module";

The directory name of the current module. This is the same as the path.dirname() of the import.meta.filename. Caveat: only present on file: modules.

Type

string
Back to top