An open API service indexing awesome lists of open source software.

https://github.com/52cik/ping-host

Browser ping host tool.
https://github.com/52cik/ping-host

Last synced: 2 months ago
JSON representation

Browser ping host tool.

Awesome Lists containing this project

README

        

# ping-host

> Browser ping host tool.

## Usage

```sh
$ yarn add ping-host
```

```js
import ping from 'ping-host';

await ping('taobao.com');
await ping('github.com', 'fluidicon.png');
await ping('github.com', 5000);
await ping('github.com', 'fluidicon.png', 3000);
```

or

```html

const ret = await ping('taobao.com');
// or
ping('taobao.com').then(ret => console.log(ret));

```