Ecosyste.ms: Awesome
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: 11 days 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 (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-02T05:37:09.000Z (about 4 years ago)
- Last Synced: 2024-11-17T14:12:39.763Z (about 1 month 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
andfilename
.
## 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);
```