Curious to see if/how well this works with Deno, which I've been using far more lately for shell scripting environments, given it tends to be more easily portable.
Deno has native support for ANSI color output in console.:
https://deno.land/std@0.156.0/fmt/colors.ts
---
import { red } from "https://deno.land/std@0.156.0/fmt/colors.ts";
console.log(red("Hello world!"));
---
Sorry, but `ansis` not work under Deno.