The process.cwd() method returns the current working directory of the Node.js process.
process.cwd()
Visit the following resources to learn more: