0.0.0-3 • Published 3 months ago
@vltpkg/url-open v0.0.0-3
@vltpkg/url-open
Open URLs using the system default web browser, for logging into registries and minting OTP tokens and such.
Overview
Give it a URL, and it'll try to open it in the user's default web browser.
Usage
import { urlOpen } from '@vltpkg/url-open'
await urlOpen('https://example.com/')
// url has now been open, or an error was thrown