Socket
Socket
Sign inDemoInstall

os-homedir

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

2

index.js

@@ -18,3 +18,3 @@ 'use strict';

if (process.platform === 'linux') {
return home || (user ? (process.getuid() === 0 ? '/root' : '/home/' + user) : null);
return home || (process.getuid() === 0 ? '/root' : (user ? '/home/' + user : null));
}

@@ -21,0 +21,0 @@

{
"name": "os-homedir",
"version": "1.0.0",
"version": "1.0.1",
"description": "io.js 2.3.0 os.homedir() ponyfill",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc