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

bin-wrapper

Package Overview
Dependencies
Maintainers
2
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.3.0 to 0.3.1

3

index.js

@@ -168,6 +168,7 @@ 'use strict';

BinWrapper.prototype.parse = function (obj) {
var arch = process.arch === 'x64' ? 'x64' : process.arch === 'arm' ? 'arm' : 'x86';
var ret = [];
obj.filter(function (o) {
if (o.os && o.os === process.platform && o.arch && o.arch === process.arch) {
if (o.os && o.os === process.platform && o.arch && o.arch === arch) {
return ret.push(o);

@@ -174,0 +175,0 @@ } else if (o.os && o.os === process.platform && !o.arch) {

{
"name": "bin-wrapper",
"version": "0.3.0",
"version": "0.3.1",
"description": "Binary wrapper that makes your programs seamlessly available as local dependencies",

@@ -23,4 +23,4 @@ "license": "MIT",

"bin",
"build",
"make",
"check",
"local",
"wrapper"

@@ -27,0 +27,0 @@ ],

@@ -56,6 +56,7 @@ # bin-wrapper [![Build Status](https://travis-ci.org/kevva/bin-wrapper.svg?branch=master)](https://travis-ci.org/kevva/bin-wrapper)

### .run(cb)
### .run(cmd, cb)
Runs the search for the binary. If no binary is found it will download the file using the URL
provided in `.src()`. It will also check that the binary is working by checking it's exit code.
provided in `.src()`. It will also check that the binary is working by running it using `cmd`
and checking it's exit code.

@@ -62,0 +63,0 @@ ## Options

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