Socket
Socket
Sign inDemoInstall

bin-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bin-wrapper - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

21

bin-wrapper.js
'use strict';
var download = require('download');
var each = require('async-foreach').forEach;
var fs = require('fs');

@@ -58,3 +57,3 @@ var isbin = require('isbin');

this._download(this.url, this.dest, function () {
download(this.url, this.dest, { mode: '0755' }).on('close', function () {
return self._test(cmd, cb);

@@ -90,20 +89,2 @@ });

/**
* Download an array files
*
* @param {String|Array} url
* @param {String} dest
* @param {Function} cb
* @api private
*/
BinWrapper.prototype._download = function (url, dest, cb) {
var get = download(url, dest);
var file = path.join(dest, path.basename(url));
get.on('close', function () {
fs.chmod(file, '0755', cb);
});
};
/**
* Parse options

@@ -110,0 +91,0 @@ *

3

package.json
{
"name": "bin-wrapper",
"version": "0.1.1",
"version": "0.1.2",
"description": "Binary wrapper for Node.js that makes your programs seamlessly available as local dependencies",

@@ -28,3 +28,2 @@ "keywords": [

"dependencies": {
"async-foreach": "~0.1.3",
"download": "~0.1.2",

@@ -31,0 +30,0 @@ "isbin": "0.0.2",

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