Skip to content
Node-style __dirname and __filename polyfill for Deno
Branch: master
Clone or download
Latest commit c34f217 Apr 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
.gitignore
LICENSE.md Add license Apr 16, 2019
README.md
mod.ts
tsconfig.json Add tsconfig Apr 16, 2019

README.md

deno-dirname

Node-style __dirname and __filename polyfill for Deno

Inspired by denoland/deno#2125 issue by @zekth

Usage

import { __ } from 'https://deno.land/x/dirname/mod.ts';
const { __filename, __dirname } = __(import.meta);

console.log(__dirname);
console.log(__filename);

Issues

For any bug reports or feature requests please post an issue on GitHub.

Author

Rafał Pocztarski
Follow on GitHub Follow on Twitter
Follow on Stack Exchange

License

MIT License (Expat). See LICENSE.md for details.

You can’t perform that action at this time.