Skip to main content
Module

x/cross_dirname/mod.ts>getFilename

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

Cross platform implementation for __filename.

type

() => unknown