1

There are 1 best solutions below

0
jebarpg On

To get the current working directory with Node.js , you can use the

process.cwd() 

method. This method returns the current working directory as a string representing the absolute path of the folder where the Node.js process is currently running.