Process.cwd - Node documentation
method Process.cwd

Usage in Deno

import { type Process } from "node:process";
Process.cwd(): string

The process.cwd() method returns the current working directory of the Node.js process.

import { cwd } from 'node:process';

console.log(`Current directory: ${cwd()}`);

Return Type

string