Skip to main content

pwd (function)

Returns the process's current working directory.

Provides the same functionality as the shell builtin of the same name.

const pwd: {
(): Path;
readonly initial: Path;
};

pwd(...) (call signature)

Returns the process's current working directory.

Provides the same functionality as the shell builtin of the same name.

(): Path;

pwd.initial (readonly Path property)

A frozen, read-only Path object containing what pwd() was when yavascript first started up.

readonly initial: Path;