Skip to main content

🕸️ 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