JS Utils Kit
    Preparing search index...

    Function getEnv

    • Retrieve the value of an environment variable.

      Parameters

      • k: string

        Environment variable name

      Returns string | undefined

      • Returns the raw string value stored in the environment object.
      • If the variable is not defined, undefined will be returned.
      const port = getEnv("PORT");