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

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: 12 months 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/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!

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

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