← All docs

getcwd()

Gets the current working directory.

getcwd()

function getcwd(): string

Gets the current working directory.

Parameters: none.

Returns: string

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how getcwd is implemented in the compiler, see the internals page.