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.
- Host: GitHub
- URL: https://github.com/shadowtime2000/denoname
- Owner: shadowtime2000
- License: mit
- Created: 2020-10-05T00:56:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-02T05:37:09.000Z (over 5 years ago)
- Last Synced: 2025-06-01T18:59:17.830Z (about 1 year ago)
- Topics: deno, deno-equivalent, deno-mod, deno-module, denoland, denoname, dirname, filename, javascript, javascript-library, nodejs, path, typescript, typescript-library
- Language: TypeScript
- Homepage: https://nest.land/package/denoname
- Size: 111 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
```