Skip to main content
The Deno 2 Release Candidate is here
Learn more

denoname

A dead simple way to get the Deno equivalent way of dirname and filename.

CDN

You can get this package from a raw Github CDN or from deno.land/x.

Usage

import path from "https://deno.land/x/denoname/mod/path.ts";
import filename from "https://deno.land/x/denoname/mod/filename.ts";

const __path = path(import.meta);
const __filename = filename(import.meta);

You can also generate both of them in one go!

import generate from "https://deno.land/x/denoname/mod.ts";

const { path, filename } = generate(import.meta);