Skip to content

52cik/ping-host

Repository files navigation

ping-host

Browser ping host tool.

Usage

$ yarn add ping-host
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

<script src="https://unpkg.com/ping-host"></script>
<script>
const ret = await ping('taobao.com');
// or
ping('taobao.com').then(ret => console.log(ret));
</script>

About

Browser ping host tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published