Node.js - Find Current Working Directory (CWD) in platform agnostic way

20 views Asked by At
1

There are 1 answers

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.