Skip to content

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

License

Notifications You must be signed in to change notification settings

shadowtime2000/denoname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);