This release is 4 versions behind 1.0.17 — the latest version of @garn/downtime. Jump to latest
This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
JSR Score
88%
Published
6 months ago (1.0.12)
Downtime
A CLI tool to mesure the downtime of multiples websites in realtime.
Any response status code is considered as a uptime. If the request fails, it's considered as a downtime.
Published on deno.land/x/downtime and JSR @garn/downtime
Prerequisites
To install the CLI tool, you need to have Deno installed in your machine.
Usage
Install and run
Install the CLI tool globally.
deno install --allow-read --allow-net --allow-env -fn downtime jsr:@garn/downtime
or using deno.land/x
deno install --allow-read --allow-net --allow-env -fn downtime https://deno.land/x/downtime/cli.ts
Run:
downtime https://garn.dev http://faker.deno.dev --sleep 2000 --timeout 3000
Run remotely
deno run -A https://deno.land/x/downtime/cli.ts https://garn.dev
Options
--sleep
: in milliseconds. Sleep between each request (default: 1000)--timeout
: in milliseconds. Timeout for each request (default: 5000)--maxTime
: in seconds. How long the tool should run. 0 to be always running (default: 0)--help
: display help
Demo
Add Package
deno add jsr:@garn/downtime
Import symbol
import * as mod from "@garn/downtime";
---- OR ----
Import directly with a jsr specifier
import * as mod from "jsr:@garn/downtime";
Add Package
npx jsr add @garn/downtime
Import symbol
import * as mod from "@garn/downtime";
Add Package
yarn dlx jsr add @garn/downtime
Import symbol
import * as mod from "@garn/downtime";
Add Package
pnpm dlx jsr add @garn/downtime
Import symbol
import * as mod from "@garn/downtime";
Add Package
bunx jsr add @garn/downtime
Import symbol
import * as mod from "@garn/downtime";