mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-25 09:34:00 +08:00
625 B
625 B
process.cwd()
process.cwd() returns the current working directory of the Node.js process, which is the directory from which the script was launched. Unlike __dirname, it reflects the shell's working directory, not the file's location. It is useful when your application needs to resolve paths relative to where it was started.
Visit the following resources to learn more: