halo - v1.0.0
    Preparing search index...

    Function ParseEnvKeys

    • This function filters environment variables that start with the specified prefix, Parses environment variables that start with a given prefix.

      Parameters

      • prefix: string

        The prefix to filter environment variables.

      Returns { keys: string[]; values: string[] }

      An object containing arrays of keys and values.

      const envVars = ParseEnvKeys("AI_TOKEN_");
      console.log(envVars.keys); // ['AI_TOKEN_KEY']
      console.log(envVars.values); // ['your_token_value']