Module

x/lume/deps/cliffy.ts>ansi

🔥 Static site generator for Deno 🦕
Very Popular
Latest
variable ansi
import { ansi } from "https://dotland.deno.dev/x/lume@v2.4.2/deps/cliffy.ts";

Chainable ansi escape sequences. If invoked as method, a new Ansi instance will be returned.

await Deno.stdout.write(
  new TextEncoder().encode(
    ansi.cursorTo(0, 0).eraseScreen(),
  ),
);

Or shorter:

await Deno.stdout.write(
  ansi.cursorTo(0, 0).eraseScreen.toBuffer(),
);