Process.platform returns “win32” for Windows. On Windows a user’s home directory might be C:\Users[USERNAME] or C:\Documents and Settings[USERNAME] depending on which version of Windows is being used. On Unix this isn’t an issue.
Process.platform returns win32 for Windows. On Windows a user’s home directory might be C:\Users[USERNAME]
Share
As mentioned in a more recent answer, the preferred way is now simply:
[Original Answer] Why not use the
USERPROFILEenvironment variable on win32?