nodejs get current directory

process.cwd() will return the current working directory in a Node.js application. This function returns a string that represents the current working directory of the Node.js process.