MOON
Server: Apache
System: Linux 54-179-220-51.cprapid.com 3.10.0-1160.144.1.el7.tuxcare.els4.x86_64 #1 SMP Tue Apr 7 08:40:40 UTC 2026 x86_64
User: thehunarfound (1001)
PHP: 7.4.29
Disabled: NONE
Upload Files
File: /home/thehunarfound/public_html/DMSold/node_modules/bin-version-check/readme.md
# bin-version-check [![Build Status](https://travis-ci.org/sindresorhus/bin-version-check.svg?branch=master)](https://travis-ci.org/sindresorhus/bin-version-check)

> Check whether a binary version satisfies a [semver range](https://github.com/isaacs/node-semver#ranges)

Useful when you have a thing that only works with specific versions of a binary.


## Install

```sh
$ npm install --save bin-version-check
```


## Usage

```sh
$ curl --version
curl 7.30.0 (x86_64-apple-darwin13.0)
```

```js
var binVersionCheck = require('bin-version-check');

binVersionCheck('curl', '>=8', function (err) {
	if (err) {
		throw err;
		//=> InvalidBinVersion: curl 7.30.0 does not satisfy the version requirement of >=8
	}
});
```


## CLI

```sh
$ npm install --global bin-version-check
```

```
$ bin-version-check --help

  Usage
    bin-version-check <binary> <semver-range>

  Example
    $ curl --version
    curl 7.30.0 (x86_64-apple-darwin13.0)
    $ bin-version-check curl '>=8'
    curl 7.30.0 does not satisfy the version requirement of >=8

  Exits with code 0 if the semver range is satisfied and 1 if not
```


## License

MIT © [Sindre Sorhus](http://sindresorhus.com)