Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/denorg/up
🔌 Check if a website is up with Deno
https://github.com/denorg/up
deno denoland denorg network online typescript
Last synced: about 1 month ago
JSON representation
🔌 Check if a website is up with Deno
- Host: GitHub
- URL: https://github.com/denorg/up
- Owner: denorg
- License: mit
- Created: 2020-05-14T22:59:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-01T11:51:35.000Z (over 4 years ago)
- Last Synced: 2024-10-30T07:15:47.148Z (about 1 month ago)
- Topics: deno, denoland, denorg, network, online, typescript
- Language: TypeScript
- Homepage: https://denorg.github.io/up/
- Size: 23.4 KB
- Stars: 14
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-deno-cn - @denorg/up
- awesome-deno - up - Check if a website is up in Deno.![GitHub stars](https://img.shields.io/github/stars/denorg/up?style=plastic) (Modules / Online Playgrounds)
- awesome-deno - up - Check if a website is up in Deno. (Modules / Web utils)
README
# 🔌 Up
Check if a website is up right now in Deno.
[![Deno CI](https://github.com/denorg/up/workflows/Deno%20CI/badge.svg)](https://github.com/denorg/up/actions)
[![GitHub](https://img.shields.io/github/license/denorg/up)](https://github.com/denorg/up/blob/master/LICENSE)
[![Contributors](https://img.shields.io/github/contributors/denorg/up)](https://github.com/denorg/up/graphs/contributors)
[![Deno Starter](https://img.shields.io/badge/deno-starter-brightgreen)](https://denorg.github.io/starter/)
[![Made by Denorg](https://img.shields.io/badge/made%20by-denorg-0082fb)](https://github.com/denorg)
[![TypeScript](https://img.shields.io/badge/types-TypeScript-blue)](https://github.com/denorg/up)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)## ⭐ Getting started
Import the `isUp` function and use it:
```ts
import { isUp } from "https://deno.land/x/up/mod.ts";const result = await isUp("https://google.com"); // true
```### CLI with [DPX](https://github.com/denorg/dpx)
After [installing DPX](https://github.com/denorg/dpx), you can directly use the CLI using the `dpx` command:
```bash
dpx up https://google.com
```### CLI
Alternatively, you can use it directly from the CLI:
```bash
deno run --allow-net https://deno.land/x/up/mod.ts https://google.com
```You can also install it globally using the following:
```bash
deno install --allow-net -n up https://deno.land/x/up/mod.ts
```Then, the package is available to run:
```bash
up https://google.com # Result: https://google.com is up
```### Configuration
Required permissions:
1. `--allow-net`
## 👩💻 Development
Run tests:
```bash
deno test --allow-net
```## ⭐ Related
- [sindresorhus/is-up](https://github.com/sindresorhus/is-up) is the Node.js project serving as inspiration for this one
- [sindresorhus/is-up-cli](https://github.com/sindresorhus/is-up-cli) is the CLI for `is-up`## 📄 License
MIT © [Denorg](https://den.org.in)
A project by Denorg, the world's first Deno-focused community
organization and consulting company. Work with us →