How do I expose the current logged in users name/etc to javascript?

How do I expose the current logged in users name/etc to javascript?

tech