Skip to main content
Deno 2 is finally here 🎉️
Learn more

🕸️ Online

Check if your machine is currently online and connected to the internet in Deno.

Test CI

import { isOnline } from "https://deno.land/x/online/mod.ts";

const result = await isOnline(); // boolean

Required permissions:

  1. --allow-net

👩‍💻 Development

Run tests:

deno test --allow-net

📄 License

MIT © Denorg