talira

gleam_community_ansi

ANSI colours, formatting and control codes for Gleam

open sourceApache-2.0free

gleam_community_ansi formats text with ANSI escape sequences (colours, backgrounds, styles and control codes) for Gleam. It's written in pure Gleam, so it works wherever Gleam runs: Erlang, Elixir, Node.js, Deno and some browsers' developer consoles. It's part of the Gleam Community packages.

Problems it solves

  • print coloured text in a Gleam CLI
  • style terminal output in Gleam
  • ANSI escape codes for a Gleam program on Node.js

Features

  • ANSI colours, backgrounds and styles
  • pure Gleam: Erlang, Node.js and Deno targets