userDirectory
userDirectory
Generally referred to as your home directory.
On most platforms, this is the content of the HOME environment variable.
If you are going to do further manipulation of paths and files you should be aware of the following packages:
Typical values are:
Linux - /home/myusername
MacOS - /usres/username
Windows - \user\username
Example:
Please help expand the list of examples by raising an issue with examples on the onpub.dev github site.
Last updated