Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.35 KB

README.md

File metadata and controls

30 lines (24 loc) · 1.35 KB

denoname

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

CDN

You can get this package from denopkg or from deno.land/x or from nest.land.

Usage

import dirname from "https://x.nest.land/denoname@0.8.2/mod/dirname.ts";
import path from "https://x.nest.land/denoname@0.8.2/mod/path.ts";
import filename from "https://x.nest.land/denoname@0.8.2/mod/filename.ts";

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

You can also generate both of them in one go!

import generate from "https://x.nest.land/denoname@0.8.2/mod.ts";

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