Skip to content

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

License

Notifications You must be signed in to change notification settings

JulienVanelian/deno_isup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks