Check if the internet connection is up in Deno.
import { isOnline } from 'https://deno.land/x/is_online@v0.1.0/mod.ts';
import { isOnline } from 'https://deno.land/x/is_online@v0.1.0/mod.ts';
(async () => {
console.log(await isOnline());
// true
console.log(await isOnline({ timeout: 5000 }));
// true
})();
Details changes for each release are documented in the CHANGELOG.md.
If you think any of the is_online
can be improved, please do open a PR with any updates and submit any issues. Also, I will continue to improve this, so you might want to watch/star this repository to revisit.
We'd love to have your helping hand on contributions to is_online
by forking and sending a pull request!
Your contributions are heartily ♡ welcome, recognized and appreciated. (✿◠‿◠)
How to contribute:
- Open pull request with improvements
- Discuss ideas in issues
- Spread the word
- Reach out with any feedback