Package Exports
- connectivity
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (connectivity) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
connectivity

Detect if the network is up (do we have connectivity?)
The module answers the most important question: is the cat-picture delivery system working?
usage
var connectivity = require('connectivity')
connectivity(function (online) {
if (online) {
console.log('connected to the internet!')
} else {
console.error('sorry, not connected!')
}
})
Also works in the browser with browserify!
license
MIT. Copyright Feross Aboukhadijeh.