Node Global Object
↔ Top-Level Object access within Node.js w/o req CommonJS import
__dirname
Node Global Object to return string
of directory path name containing file
__filename
Node Global Object to return string
of full path to file
global
global namespace object in Node.js
process
Node Global Object with info on current process instance (JS file being executed)
Source: Process | Node.js v18.3.0 Documentation
References
__dirname
↔ Node Global Object to returnstring
of directory path name containing file__filename
↔ Node Global Object to returnstring
of full path to fileprocess
↔ Node Global Object with info on current process instance (JS file being executed)