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

bin-version

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bin-version - npm Package Compare versions

Comparing version 6.0.0 to 7.0.0

4

index.d.ts

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

export interface Options {
export type Options = {
/**

@@ -8,3 +8,3 @@ The arguments to pass to `binary` so that it will print its version.

readonly args?: readonly string[];
}
};

@@ -11,0 +11,0 @@ /**

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

import execa from 'execa';
import {execa} from 'execa';
import findVersions from 'find-versions';

@@ -10,5 +10,5 @@

'ffprobe',
'ffplay'
'ffplay',
].map(name => [name, ['-version']]),
['openssl', ['version']]
['openssl', ['version']],
]);

@@ -18,3 +18,3 @@

['--version'],
['version']
['version'],
];

@@ -26,4 +26,4 @@

if (options.args === undefined) {
const customArgs = knownBinaryArguments.get(binary);
possibleArguments = customArgs === undefined ? defaultPossibleArguments : [customArgs];
const customArguments = knownBinaryArguments.get(binary);
possibleArguments = customArguments === undefined ? defaultPossibleArguments : [customArguments];
} else {

@@ -33,8 +33,8 @@ possibleArguments = [options.args];

for (const args of possibleArguments) {
for (const arguments_ of possibleArguments) {
try {
// eslint-disable-next-line no-await-in-loop
const {all} = await execa(binary, args, {
const {all} = await execa(binary, arguments_, {
all: true,
maxBuffer: oneMegabyte
maxBuffer: oneMegabyte,
});

@@ -41,0 +41,0 @@

{
"name": "bin-version",
"version": "6.0.0",
"version": "7.0.0",
"description": "Get the version of a binary in semver format",

@@ -14,5 +14,9 @@ "license": "MIT",

"type": "module",
"exports": "./index.js",
"exports": {
"types": "./index.d.ts",
"default": "./index.js"
},
"sideEffects": false,
"engines": {
"node": ">=12"
"node": ">=18"
},

@@ -35,10 +39,15 @@ "scripts": {

"dependencies": {
"execa": "^5.0.0",
"find-versions": "^5.0.0"
"execa": "^8.0.1",
"find-versions": "^6.0.0"
},
"devDependencies": {
"ava": "^3.15.0",
"tsd": "^0.14.0",
"xo": "^0.39.1"
"ava": "^6.1.2",
"tsd": "^0.31.0",
"xo": "^0.58.0"
},
"xo": {
"ignores": [
"fixture"
]
}
}

@@ -7,9 +7,9 @@ # bin-version

```sh
npm install bin-version
```
$ npm install bin-version
```
## Usage
```
```console
$ curl --version

@@ -26,3 +26,3 @@ curl 7.30.0 (x86_64-apple-darwin13.0)

```
```console
$ openssl version

@@ -39,3 +39,3 @@ OpenSSL 1.0.2d 9 Jul 2015

```
```console
$ openssl version

@@ -42,0 +42,0 @@ OpenSSL 1.0.2d 9 Jul 2015

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