Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
variable ansi
import { ansi } from "https://deno.land/x/actionify@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(),
);