Buckets:
| // Copyright (c) 2026 the Zuke contributors | |
| // SPDX-License-Identifier: MIT | |
| /** | |
| * {@link envValue}: the one reading of an environment variable the credential | |
| * sources use, so they agree that an empty variable is an unset one — a CI | |
| * system that exports `AWS_PROFILE=` means "no profile", not a profile named | |
| * the empty string. | |
| * | |
| * @module | |
| */ | |
| /** `name`'s value from `readEnv`, `undefined` when unset or empty. */ | |
| export function envValue( | |
| readEnv: (name: string) => string | undefined, | |
| name: string, | |
| ): string | undefined { | |
| const value = readEnv(name); | |
| return value === "" ? undefined : value; | |
| } | |
Xet Storage Details
- Size:
- 618 Bytes
- Xet hash:
- 6ca4740e9983997052a38f95bf696f6e93db5f26e5c515afac1beacf920fb5a3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.