Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/martonlederer/dirname

The Deno implementation of __dirname of Node
https://github.com/martonlederer/dirname

Last synced: 3 days ago
JSON representation

The Deno implementation of __dirname of Node

Awesome Lists containing this project

README

        




dirname



A dead simple implementation of Node's __dirname in Deno

## Usage
```ts
import makeloc from 'https://x.nest.land/[email protected]/mod.ts'

const { __dirname, __filename } = makeloc(import.meta)
```