Skip to main content

System

Path to currently executing script:
__filename

Path to currently executing script directory:
__dirname

console.log("Current script file path: " + __filename);
console.log("Directory path of current script: " + __dirname);