Skip to content

Commit

Permalink
docs(ansi): use cliffy logo in image example (c4spar#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar authored Nov 8, 2024
1 parent db5ae30 commit e575ca0
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 e575ca0

Please sign in to comment.