Get current username with Installer JS

Hi.
I need to retrieve the current user to check if a particular application that installed in the user context (it is installed in /Users/<username>/Library/Application Support/..) should be upgraded when the installer (a dmg) runs. I was checking with the objects available in the Installer JS (https://developer.apple.com/documentation/installer_js) but I didn't find any way to retrieve the current user (ideally I need to retrieve the user home path)
Thanks
Get current username with Installer JS
 
 
Q