@alextheman/utility - v4.3.5
    Preparing search index...

    Function parseEnv

    • Parses the input and verifies it matches one of the environments allowed by the Env types ("test" | "development" | "production").

      Parameters

      • data: unknown

        The data to parse.

      Returns string

      The specified environment if allowed.

      If the data does not match one of the environments allowed by the Env types ("test" | "development" | "production").