browser-is-online

Check the network connection

Usage no npm install needed!

<script type="module">
  import browserIsOnline from 'https://cdn.skypack.dev/browser-is-online';
</script>

README

browser-is-online XO code style

Check the network connection

Usage

const isOnline = require('browser-is-online');

isOnline((err, status) => {
  if (err) throw err;
  changeText(status);
});

License

MIT © Vivek Poddar