Delvery
CLI to measure latency and/ or response time.
!Build Statustravis-badgetravis-url !Versionversion-badgeversion-url !Downloadsdownloads-badgedownloads-url !MIT Licensemit-license-badgemit-license-url !Dependency Statusdaviddm-badgedaviddm-url !NSP Statusnsp-badgensp-url
!Code of Conductcoc-badgecoc-url
A CLI made to measure latency and/ or response time by providing a URL of an endpoint via simple call or polling.
Pre-requisite
- Node.jsnode-js-url >= 8.6.0
- NPMnpm-url >= 5.3.0 (NPMnpm-url comes Node.jsnode-js-url so there is no need to install separately.)
How to use
To install the CLI
You can choose to either use the CLI directly with npxnpx-url or to install the CLI globally with NPMnpm-url.\ Please note that as of npxnpx-url is bundled with NPMnpm-url as of the version of 5.2.0npx-the-npm-package-runner-url.
# Use CLI with npx
$ npx delvery <command>
# Install globally via NPM
$ npm install -g delvery
Commands
- Show help via
-h
or--help
.
```bash # delvery --help $ delvery -h ```
- Run latency test via
-l
or--latency
.
```bash # delvery --latency address> # delvery -l address> $ delvery "https://example.com" ```
- Run polling test via
-p
or--polling
.
```bash # delvery --polling -H -d data> -i intervals> -c cutofftimes> -s whencomplete> # delvery -p -H -d data> -i intervals> -c cutofftimes> -s whencomplete> delvery -p "https://example.com" -H '{ "X-Random-Key": "4w3s0m3" }' -i "1.5,2,3,5" -c "3,5,7,9" ```