Function green

  • Sets the color of text to be printed to green.

    Disable by setting the NO_COLOR environmental variable.

    Parameters

    • str: string

      Text to make green

    Returns string

    Green text for print

    import { green } from "@std/internal/styles";

    console.log(green("Hello, world!")); // Prints "Hello, world!" in green