Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/wcarbon/src/util.ts>isValidUrl

Access Website Carbon's API for checking carbon emissions for websites with Deno.
Go to Latest
function isValidUrl
import { isValidUrl } from "https://deno.land/x/wcarbon@v3.0.0/src/util.ts";

Checks if an URL is valid, also checks URL is provided with HTTP(S).

Parameters

url: string | URL

Returns

boolean

boolean