Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/tl_log/examples/deploy.d.ts>Deno.cwd

Time-Level-Log for Deno🦕
Latest
function Deno.cwd
import { Deno } from "https://deno.land/x/tl_log@0.1.2/examples/deploy.d.ts";
const { cwd } = Deno;

Return a string representing the current working directory.

If the current directory can be reached via multiple paths (due to symbolic links), cwd() may return any one of them.

const currentWorkingDirectory = Deno.cwd();

Throws Deno.errors.NotFound if directory not available.

Returns

string