is-internet-or-lost

A simple utility to check network status (online/offline) and listen for changes in the connection.

Browse on unpkg