method Process.cwdProcess.cwd(): stringDeprecatedThe process.cwd() method returns the current working directory of the Node.js process. import { cwd } from 'node:process'; console.log(`Current directory: ${cwd()}`); Return Typestring