Skip to main content
Module

x/wcarbon/src/helpers.ts

CLI tool for Website Carbon's API
Go to Latest
import * as wcarbon from "https://deno.land/x/wcarbon@v1.3.1/src/helpers.ts";

Functions

Calculate the energy of an @param amount to a human-readable format.

Calculate the size of a @param number to a human-readable format.

Get's URL for Website Carbon to see results based on provided @param url

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

Returns true if no argmuments are provided.

Slugify a string. Ex. example.org becomes example-org