Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

downloads-folder

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

downloads-folder - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

14

index.js
'use strict';
const os = require('os');
const {execSync} = require('child_process');
const {statSync} = require('fs');
const execSync = require('child_process').execSync;
const statSync = require('fs').statSync;

@@ -27,4 +27,5 @@ module.exports = () => {

let dir;
try { dir = execSync('xdg-user-dir DOWNLOAD', { stdio: [0, 3, 3] }); }
catch (_) {}
try {
dir = execSync('xdg-user-dir DOWNLOAD', { stdio: [0, 3, 3] });
} catch (_) {}
if (dir) return dir;

@@ -34,4 +35,5 @@

const homeDownloads = `${process.env.HOME}/Downloads`;
try { stat = statSync(homeDownloads); }
catch (_) {}
try {
stat = statSync(homeDownloads);
} catch (_) {}
if (stat) return homeDownloads;

@@ -38,0 +40,0 @@

{
"name": "downloads-folder",
"description": "Get the local downloads folder, for all major platforms",
"version": "1.0.0",
"version": "1.0.1",
"license": "MIT",
"repository": "juliangruber/downloads-folder"
"repository": "juliangruber/downloads-folder",
"devDependencies": {
"semistandard": "^9.1.0"
},
"scripts": {
"test": "semistandard"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc