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

resourcehacker

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resourcehacker - npm Package Compare versions

Comparing version 4.0.0 to 4.2.5

7

package.json
{
"name": "resourcehacker",
"version": "4.0.0",
"version": "4.2.5",
"description": "Node wrapper of Resource Hacker (windows executable resource editor)",

@@ -32,3 +32,3 @@ "main": "lib/ResHacker.js",

"scripts": {
"postinstall" : "node scripts/install.js"
"postinstall": "node scripts/install.js"
},

@@ -46,4 +46,5 @@ "readmeFilename": "README.md",

"dependencies": {
"adm-zip": "^0.4.7"
"adm-zip": "^0.4.7",
"caw": "^1.2.0"
}
}

@@ -1,4 +0,2 @@

var http = require('http');
var fs = require('fs');
var AdmZip = require('adm-zip');
var path = require('path');

@@ -12,23 +10,29 @@

if(!fs.existsSync(dir_path)){
fs.mkdirSync(dir_path);
fs.mkdirSync(dir_path);
}
if(!fs.existsSync(bin_path)) {
console.log('Downloading ResourceHacker by Angus Johnson...')
var file = fs.createWriteStream(zip_path);
var request = http.get(download_url, function(response) {
response.pipe(file);
file.on('finish', function() {
file.close(function(err){
var zip = new AdmZip(zip_path);
zip.extractAllTo(dir_path, true);
console.log('Download complete');
process.exit(0);
});
});
}).on('error', function(err) { // Handle errors
fs.unlink(zip_path);
console.error(err.message);
process.exit(-1);
if(fs.existsSync(bin_path)) {
return;
}
var http = require('http');
http.globalAgent = require("caw")();
var AdmZip = require('adm-zip');
console.log('Downloading ResourceHacker by Angus Johnson...')
var file = fs.createWriteStream(zip_path);
var request = http.get(download_url, function(response) {
response.pipe(file);
file.on('finish', function() {
file.close(function(err){
var zip = new AdmZip(zip_path);
zip.extractAllTo(dir_path, true);
console.log('Download complete');
process.exit(0);
});
});
}
}).on('error', function(err) { // Handle errors
fs.unlink(zip_path);
console.error(err.message);
process.exit(-1);
});
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