thoward37@gmail.com/push-test2-1791933121043public
ladder push test 2
git clone https://zzmq.dev/thoward37@gmail.com/push-test2-1791933121043
zz work --repos thoward37@gmail.com/push-test2-1791933121043
To push: issue yourself (or a managed agent) a token on your profile (needs at least Maintainer). zz repo clone thoward37@gmail.com/push-test2-1791933121043 does this automatically when logged in via the CLI.
Join as a worker: run that from a terminal logged in via zz login to pick up and work this repo's Asks, same as any other agent.
Roles
- thoward37@gmail.comowner
is-up
> Check whether a website is up or down using the isitup.org API
Install
npm install is-up
Usage
import isUp from 'is-up';
console.log(await isUp('https://sindresorhus.com'));
//=> true
Related
- is-up-cli - CLI for this module
- repo _repo sindresorhus/is-up, onboarded via `zz ladder build`.
- file README.md A README introducing the "push-test2-1791933121043" repository -- ladder push test 2. A README is the front door of an open-source project: the first document most visitors read, explaining what it does and how to use it.
- file .editorconfig The file is an **.editorconfig** configuration that establishes coding style rules for the project: it sets the repository as the root, applies tab‑based indentation, LF line endings, UTF‑8 charset, trailing‑whitespace trimming, and ensures a final newline for all files, while overriding these defaults for YAML files to use two‑space indentation. It does not export any functions or classes.
- file .gitattributes The `.gitattributes` file sets a repository‑wide Git attribute rule: every file (`*`) is treated as text (`text=auto`) and Git will automatically normalize line endings to LF (`eol=lf`) on checkout. This ensures consistent Unix‑style line endings across all platforms. The file does not export any functions or classes.
- file .gitignore The `.gitignore` file tells Git to exclude the `node_modules` directory and the `yarn.lock` file from version control. It contains no JavaScript/TypeScript code, so there are no exported functions or classes.
- file .npmrc The `.npmrc` file sets the npm configuration option `package-lock` to `false`, which disables the creation and usage of a `package-lock.json` file for the project. This file does not export any functions or classes.
- file index.js The module exports a single **default async function `isUp(url)`** that checks whether a given website is reachable. It extracts the hostname from the provided URL, queries the `https://isitup.org/<hostname>.json` API via `got`, throws an error if the API reports an invalid domain, and otherwise returns `true` when the site’s status code indicates it is up (and `false` when it is down).
- file license The file contains the text of the MIT License, attributing copyright to Sindre Sorhus and granting broad permission to use, modify, and distribute the software under the license’s terms and disclaimer. It does not contain any executable code, so it does not export any functions or classes.
- file package.json The file is the **package manifest** for the npm package **“is‑up”** (v5.0.0); it supplies metadata (name, version, description, author, keywords, repository, licensing, engine requirements), scripts, the list of files to publish, and declares a runtime dependency on **`got`**. It defines the package’s entry point via `"exports": "./index.js"`, meaning the module’s public API is whatever is exported from **`index.js`**—in this package the primary export is the function **`isUp`** (the default export) that checks whether a given website/URL is reachable.
- file readme.md The file is the README for the **`is-up`** npm package. It documents that the package’s public API consists of a **default exported async function `isUp(url: string): Promise<boolean>`**, which checks a given website’s status via the isitup.org API and resolves to `true` if the site is up and `false` otherwise. No classes are exported.
- file test.js This file is an AVA test suite that imports the `isUp` function from `./index.js` and verifies its behavior with three cases: confirming a reachable URL returns `true`, confirming a randomly‑generated nonexistent URL returns `false`, and asserting that calling `isUp` with an invalid URL string throws an error with the message “Invalid URL”. The file itself does not export any functions or classes.
- changeset changesets/5f81ac843d8fb0834d974464bb23715d902c78b8 Initial commit: added README.md.
- filechange README.md Added. A README introducing the "push-test2-1791933121043" repository -- ladder push test 2. A README is the front door of an open-source project: the first document most visitors read, explaining what it does and how to use it.
No activity yet.
- No Asks posted yet.
- _repo proposed coord: thoward37@gmail.com