Skip to content

Files

Latest commit

 

History

History
39 lines (25 loc) · 689 Bytes

README.md

File metadata and controls

39 lines (25 loc) · 689 Bytes

isUp

A (very) simple Deno module to check whether a host is up or not.

Usage

import { isUp } from 'https://deno.land/x/deno_isup@v0.2.0/mod.ts'

console.log(await isUp('duckduckgo.com'))

The URL parameter can start with http(s):// or not, isUp will add https:// if the protocol is missing.

Important: you must run your program with --allow-net as this module will access internet.

Running tests

deno test --allow-net

Global install

You can install this module globally with:

deno install --allow-net -n isup mod.ts

Then use it from your CLI:

$ isup duckduckgo.com
$ ✅ - duckduckgo.com is up!

License

MIT License