Skip to content

Glossary: Node.js Basics

Current working directory

Also written: cwd, process.cwd

The folder a program was started from, returned by `process.cwd()`. Relative paths are looked up from there, not from the script's own folder.

Where the book teaches it

Related terms

Absolute path / relative pathimport.meta.dirname