Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/alloy_folk/deps.ts>cliffy.image

An application installer for restriced macOS
Go to Latest
function cliffy.image
import { cliffy } from "https://deno.land/x/alloy_folk@v1.1.1/deps.ts";
const { image } = cliffy;

Create image.

Parameters

buffer: string | ArrayBuffer

Image buffer.

optional
options: ImageOptions

Image options.

const response = await fetch("https://deno.land/images/hashrock_simple.png");
const imageBuffer: ArrayBuffer = await response.arrayBuffer();
console.log(
ansi.image(imageBuffer),
);

Returns

string