Skip to content

Commit

Permalink
docs(ansi): use cliffy logo in image example
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed Nov 8, 2024
1 parent db5ae30 commit 8314d27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/ansi/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import { image } from "@cliffy/ansi/ansi-escapes";

const response = await fetch("https://deno.land/images/hashrock_simple.png");
const response = await fetch(
"https://raw.githubusercontent.com/c4spar/deno-cliffy/main/logo.png",
);
const imageBuffer: ArrayBuffer = await response.arrayBuffer();
console.log(image(imageBuffer));

0 comments on commit 8314d27

Please sign in to comment.