Skip to main content
Module

x/cross_dirname/mod.ts>getDirname

Node.js + Gjs + Deno module that returns the current script dirname. Similar to __dirname but also works in CommonJs and ES modules.
Latest
variable getDirname
import { getDirname } from "https://deno.land/x/cross_dirname@v0.1.0/mod.ts";

Cross platform implementation for __dirname.

type

() => unknown