Module

x/cliffy/mod.ts>image

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
function image
import { image } from "https://dotland.deno.dev/x/cliffy@v0.19.0/mod.ts";

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