Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shadowtime2000/denoname

A dead simple way to get the Deno equivalent of dirname and filename.
https://github.com/shadowtime2000/denoname

deno deno-equivalent deno-mod deno-module denoland denoname dirname filename javascript javascript-library nodejs path typescript typescript-library

Last synced: 11 days ago
JSON representation

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

Awesome Lists containing this project

README

        


denoname


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






## CDN
You can get this package from [denopkg](https://denopkg.com/shadowtime2000/denoname) or from [deno.land/x](https://deno.land/x/denoname) or from [nest.land](https://nest.land/package/denoname).

### Usage
```typescript
import dirname from "https://x.nest.land/[email protected]/mod/dirname.ts";
import path from "https://x.nest.land/[email protected]/mod/path.ts";
import filename from "https://x.nest.land/[email protected]/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!

```typescript
import generate from "https://x.nest.land/[email protected]/mod.ts";

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