access user info in javascript?

Anyone with a quick pointer on how to access {{$User.userName}} in javascript?

Thanks!

skuid.utils.userInfo.name

You’re the best, Pat!

Also, see the docs on the $User global merge variable, which mention that this data is sources from the skuid.utils.userInfo object in JavaScript.

Note: 
skuid.utils.userInfo.userName will give you a User’s Username, something like “joe@somewhere.com
skuid.utils.userInfo.name will give you a User’s Full Name, something like “Joe Smith”

Nice. I should have looked at the documentation more carefully!

Yeah… Pat gave me what I actually wanted, despite the fact that I asked for the wrong thing!