I want to get the user’s computer name, how can I get the user computer name?
With JSX i used to use something like $.getenv('computername')
, is it something similar in UXP?
Thanks!
I want to get the user’s computer name, how can I get the user computer name?
With JSX i used to use something like $.getenv('computername')
, is it something similar in UXP?
Thanks!
Also looking for machine name. Feels like it should belong under os
or process
but not seeing it in either place yet…
If you use a Hybrid Plugin you could get it via CLI for now. ( Bolt UXP comes with one ready to go with execSync()
)
Thanks brother!! Seems I never responded my own soulution for this haha but I got it indeed with os.homedir()
woeked for me.
Haven’t tried Bolt ever but seems amazing man! Gonna give it a try someday!