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 v
os.homedir() was added by this PR and is part of the public 4.0.0 release of nodejs.
Example usage:
const os = require('os'); console.log(os.homedir());