0.1.1
Quick little Deno module to open a website in the default browser.
Repository
Current version released
2 years ago
Versions
open-a-website
This module lets you open the default browser at a specified URL.
- Works on Windows, Mac, and (when possible) Linux.
- Works on WSL/Windows, too, if you pass
--allow-env
(needs to readWSL_DISTRO_NAME
).
- Works on WSL/Windows, too, if you pass
Usage
import { openAWebsite } from "https://deno.land/x/open-a-website/mod.ts";
await openAWebsite("https://ed0.is");
This module requires --allow-run
and --allow-env
(for WSL2 detection). You can scope these permissions to this module just like any other Deno module.