Polyman Documentation - v3.1.0
    Preparing search index...

    Function getTheme

    • Returns the theme selected by the environment, without detection (an unset POLYMAN_THEME gives dark). A non-empty NO_COLOR disables all colors.

      Parameters

      • Optionalenv: ProcessEnv = process.env

        Environment to read

      • Optionalbase: ChalkInstance = chalk

        Chalk instance used when colors are on

      Returns Theme

      The active theme