New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

desktop-screenshot

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

desktop-screenshot - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

capture/bin/nircmd.exe

20

capture/win32.js

@@ -7,15 +7,13 @@ module.exports = function(options, callback) {

childProcess.exec(path.join(__dirname, "bin", "nircmdc.exe") + " savescreenshot " + options.output, function(error, stdout, stderr) {
if(stderr)
callback(stderr, null);
else {
try {
fs.statSync(options.output);
callback(null, options); // callback with options, in case options added
}
catch (error) {
callback("file_not_found", null);
}
var nircmd = childProcess.spawn(path.join(__dirname, "bin", "nircmd.exe"), ["savescreenshot", options.output]);
nircmd.on('close', function(code, signal) {
try {
fs.statSync(options.output);
callback(null, options); // callback with options, in case options added
}
catch(error) {
callback("file_not_found", null);
}
});
};
{
"name": "desktop-screenshot",
"version": "0.0.5",
"version": "0.0.6",
"description": "Cross-platform screenshot module, using external tools",

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

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