(
env: Record<string, string | undefined>,
options?: { readonly preserveEmptyStrings?: boolean | undefined }
)
| 861 | * @since 4.0.0 |
| 862 | */ |
| 863 | export function fromEnvRecord( |
| 864 | env: Record<string, string | undefined>, |
| 865 | options?: { readonly preserveEmptyStrings?: boolean | undefined } |
| 866 | ): ConfigProvider { |
| 867 | const preserveEmptyStrings = options?.preserveEmptyStrings === true |
| 868 | const trie = buildEnvTrie(env) |
| 869 | return make((path) => Effect.succeed(nodeAtEnv(trie, env, path, preserveEmptyStrings))) |
| 870 | } |
| 871 | |
| 872 | /** |
| 873 | * Creates a `ConfigProvider` backed by environment variables. |
no test coverage detected