# check-server-version

> Keep checking a server until the version has changed.

Latest version **1.4.0** (published 2020-08-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install check-server-version
pnpm add check-server-version
yarn add check-server-version
bun add check-server-version
```

Provides the command `check-server-version`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2020-08-30 |
| First published | 2019-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Prageeth Silva |
| Maintainers | prageethsilva |

## Links

- npm: https://www.npmjs.com/package/check-server-version
- Repository: https://github.com/pureartisan/check-server-version
- Homepage: https://github.com/pureartisan/check-server-version#readme
- Issues: https://github.com/pureartisan/check-server-version/issues
- npm.io page: https://npm.io/package/check-server-version

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^0.19.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.5
- [lodash.get](https://npm.io/package/lodash.get.md) ^4.4.2

## Recent versions

- 1.4.0 (latest) — 2020-08-30
- 1.3.1 — 2020-01-11
- 1.3.0 — 2020-01-11
- 1.2.0 — 2019-06-30
- 1.1.0 — 2019-06-29
- 1.0.0 — 2019-06-29

## README

# check-server-version [![npm version](https://badge.fury.io/js/check-server-version.svg)](https://badge.fury.io/js/check-server-version)

Check a server version using an endpoint that returns JSON.

This script will ping continuously (with a delay, for a given number of times) until the version matches a given version.

## Install

```
npm install -g check-server-version
```

### Usage

```
check-server-version
    // the server url that returns json
    --url="http://myserver.com/api/version"
    // the path of the json object that shows the version
    // e.g. { data: { api: { version: "1.5.0" }}}
    --json-path="data.api.version"
    // the target expected version
    --target-version="1.5.0"
    // delay between checks in seconds [default 1 second]
    // e.g. 30 seconds
    --delay=30
    // number of times to check [default 10 times]
    --limit=5
```

```
// display current version of the 'check-server-version-plugin

check-server-version --version
```

```
// get help/usage of the plugin

check-server-version --help
```

---
_Source: https://npm.io/package/check-server-version · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
