Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/cliffy/examples/ansi/functional.ts

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
File
import { cursorTo, eraseDown, image, link } from "../../ansi/ansi_escapes.ts";
const response = await fetch("https://deno.land/images/hashrock_simple.png");const imageBuffer: ArrayBuffer = await response.arrayBuffer();
console.log( cursorTo(0, 0) + eraseDown() + image(imageBuffer, { width: 29, preserveAspectRatio: true, }) + "\n " + link("Deno Land", "https://deno.land") + "\n",);