deno / 1.23.2 / ~ / deno.cwd.html /

Deno.cwd

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.

Requires --allow-read

function cwd() : string;
cwd() : string

Return Type

string

© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.cwd