MCPcopy Create free account
hub / github.com/Effect-TS/effect / layerDotEnv

Function layerDotEnv

packages/platform/src/internal/platformConfigProvider.ts:34–38  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

32
33/** @internal */
34export const layerDotEnv = (path: string): Layer.Layer<never, PlatformError, FileSystem.FileSystem> =>
35 fromDotEnv(path).pipe(
36 Effect.map(Layer.setConfigProvider),
37 Layer.unwrapEffect
38 )
39
40/** @internal */
41export const layerDotEnvAdd = (path: string): Layer.Layer<never, never, FileSystem.FileSystem> =>

Callers

nothing calls this directly

Calls 3

fromDotEnvFunction · 0.85
pipeMethod · 0.65
mapMethod · 0.65

Tested by

no test coverage detected