Skip to main content
Module

x/scaffold/src/deps/cli.ts>ansi

scaffold your next project with style and 💗
Latest
variable ansi
import { ansi } from "https://deno.land/x/scaffold@0.3.0/src/deps/cli.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(),
);