@jswork/next-is-reachable

Check if port reachable.

Usage no npm install needed!

<script type="module">
  import jsworkNextIsReachable from 'https://cdn.skypack.dev/@jswork/next-is-reachable';
</script>

README

next-is-reachable

Check if port reachable.

version license size download

installation

npm install -S @jswork/next-is-reachable

usage

import '@jswork/next-is-reachable';

nx.isReachable({ port: 80, host: 'www.baidu.com' }).then((res) => {
  // true
});

license

Code released under the MIT license.