process.cwd()

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

Visit the following resources to learn more: