naystack - v1.5.10
    Preparing search index...

    Function getEnvValue

    • Reads an environment variable by key. Does not throw if the value is missing.

      Parameters

      Returns string | undefined

      The value of the env var, or undefined if unset.

      import { getEnvValue, EnvVariable } from "naystack/env";

      const region = getEnvValue(EnvVariable.AWS_REGION); // "us-east-1" or undefined