Skip to main content
This release is 1 version 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
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
88%
Published
4 months ago (1.0.16)

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 jsr:@garn/downtime 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

Example

downtime https://garn.dev https://faker.deno.dev https://faker.deno.dev?status=400 https://faker.deno.dev?status=500 --sleep 2000 --timeout 3000

https://deno.land/x/downtime

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";