πΈοΈ Online
Check if your machine is currently online and connected to the internet in Deno.
import { isOnline } from "https://deno.land/x/online/mod.ts";
const result = await isOnline(); // boolean
Required permissions:
--allow-net
π©βπ» Development
Run tests:
deno test --allow-net
β Related Work
- sindresorhus/is-online is the Node.js project serving as inspiration for this one
π License
MIT Β© Denorg