https://github.com/pureartisan/check-server-version
Node script to check server version
https://github.com/pureartisan/check-server-version
api json node nodejs script versioning
Last synced: 14 days ago
JSON representation
Node script to check server version
- Host: GitHub
- URL: https://github.com/pureartisan/check-server-version
- Owner: pureartisan
- Created: 2019-06-29T19:01:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T04:11:23.000Z (almost 4 years ago)
- Last Synced: 2025-08-22T18:50:04.407Z (6 months ago)
- Topics: api, json, node, nodejs, script, versioning
- Language: JavaScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# check-server-version [](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
```