on-online
v0.0.2
Published
Is online event emitter.
Downloads
2
Readme
On Online
Simple event emitter that tells you when you are online/offline.
Example
const onOnline = require('on-online');
onOnline.on('online', () => {
console.log(`You're online`);
});
onOnline.on('offline', () => {
console.log(`You're offline`);
});
Related
- is-online - Library for checking internet access
License
MIT © Dušan Simić