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: 8 days 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-01T11:51:35.000Z (almost 5 years ago)
- Last Synced: 2025-04-02T06:05:03.287Z (18 days ago)
- Topics: deno, denoland, denorg, network, online, typescript
- Language: TypeScript
- Homepage: https://denorg.github.io/up/
- Size: 23.4 KB
- Stars: 14
- Watchers: 5
- 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. (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.
[](https://github.com/denorg/up/actions)
[](https://github.com/denorg/up/blob/master/LICENSE)
[](https://github.com/denorg/up/graphs/contributors)
[](https://denorg.github.io/starter/)
[](https://github.com/denorg)
[](https://github.com/denorg/up)
[](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 →