# @webb/ping

> Determine if a url exists

Latest version **2020.10.1** (published 2020-10-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @webb/ping
pnpm add @webb/ping
yarn add @webb/ping
bun add @webb/ping
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2020.10.1 |
| Published | 2020-10-01 |
| First published | 2020-08-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | netop://ウエハ |
| Maintainers | netoperatorwibby |

## Links

- npm: https://www.npmjs.com/package/@webb/ping
- Repository: https://github.com/NetOperatorWibby/ping
- Issues: https://github.com/NetOperatorWibby/ping/issues
- npm.io page: https://npm.io/package/@webb/ping

## Dependencies (1)

- [got](https://npm.io/package/got.md) ^11.7.0

## Recent versions

- 2020.10.1 (latest) — 2020-10-01
- 2020.8.4 — 2020-08-04

## README

# @webb/ping

> Determine if a URL exists



### Install

```sh
npm i @webb/ping
```



### Usage

```js
import ping from "@webb/ping";

async() => {
  const theLink = await ping("https://example.com");

  if (theLink.exists)
    // do something with it
  else
    // ignore dead links
};
```



## API

### ping(input)

`input` is the URL you want to check, must include protocol prefix (`http://`/`https://`).

#### input

- Type: `String`



## Tests

```sh
# Run all tests, sequentially
$ npm test

# Test dependencies for latest versions
$ npm run test:dependencies

# Lint "src" directory
$ npm run test:typescript

# Test this module
$ npm run test:assert

# Test coverage for the `test:assert` script
$ npm run test:coverage

# Run the included example
$ npm run example
```



## Note

If this module incorrectly reports a live site as not found, that site might be slow to load and/or is configured strangely.

---
_Source: https://npm.io/package/@webb/ping · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
