Convert an image to a URL using the ImgBB API
import ImageToUrl from "@epi/image-to-url"; const image = await Deno.readFile("./image.png"); const file = new File([read], "image.png", { type: "image/png" }); const url = await ImageToUrl(file, API_KEY); console.log(url); // https://i.ibb.co/WvstcQd/image.png
Add Package
deno add jsr:@epi/image-to-url
Import symbol
import * as image_to_url from "@epi/image-to-url";
---- OR ----
Import directly with a jsr specifier
import * as image_to_url from "jsr:@epi/image-to-url";
Add Package
npx jsr add @epi/image-to-url
Import symbol
import * as image_to_url from "@epi/image-to-url";
Add Package
yarn dlx jsr add @epi/image-to-url
Import symbol
import * as image_to_url from "@epi/image-to-url";
Add Package
pnpm dlx jsr add @epi/image-to-url
Import symbol
import * as image_to_url from "@epi/image-to-url";
Add Package
bunx jsr add @epi/image-to-url
Import symbol
import * as image_to_url from "@epi/image-to-url";