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

bestzip

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bestzip - npm Package Compare versions

Comparing version 2.1.4 to 2.1.5

14

lib/bestzip.js

@@ -13,16 +13,6 @@ // creates a zip file using either the native `zip` command if available,

const glob = require("glob");
const which = require("which");
let _hasNativeZip = null;
function hasNativeZip() {
if (_hasNativeZip === null) {
try {
cp.execSync("zip -?");
_hasNativeZip = true;
} catch (err) {
_hasNativeZip = false;
}
}
return _hasNativeZip;
return Boolean(which.sync("zip", { nothrow: true }));
}

@@ -29,0 +19,0 @@

5

package.json
{
"name": "bestzip",
"version": "2.1.4",
"version": "2.1.5",
"description": "Uses OS zip command if avaliable (for better performance and speed) or node.js version if there is no system command avaliable. Can be called via node or command line.",

@@ -20,3 +20,3 @@ "main": "lib/bestzip.js",

"files": [
"bin/",
"bin/cli.js",
"lib/"

@@ -28,2 +28,3 @@ ],

"glob": "^7.1.3",
"which": "^1.3.1",
"yargs": "^13.2.4"

@@ -30,0 +31,0 @@ },

# bestzip
[![Linux and MacOS build status](https://travis-ci.org/nfriedly/node-bestzip.svg?branch=master)](https://travis-ci.org/nfriedly/node-bestzip)
[![Windows build status](https://ci.appveyor.com/api/projects/status/6gk3igwk2l85djnn?svg=true)](https://ci.appveyor.com/project/nfriedly/node-bestzip)
[![Build status](https://travis-ci.org/nfriedly/node-bestzip.svg?branch=master)](https://travis-ci.org/nfriedly/node-bestzip)

@@ -6,0 +5,0 @@ This module provides a `bestzip` command that calls the native `zip` command if available and otherwise falls back to a

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