DenoPath
Path service layers backed by the Deno Standard Library.
Example
(Using Deno path operations)
import { Effect, Path } from "effect"import { DenoPath } from "@effect/platform-deno"
const program = Effect.gen(function*() { const path = yield* Path.Path return path.extname("file.txt")}).pipe(Effect.provide(DenoPath.layer))
Effect.runSync(program) // => ".txt"Layers
A layer that provides OS-agnostic path operations.
Signature
declare const layer: Layer.Layer<Path.Path>layerPosix
Added in v4.0.0
Source
A layer that provides POSIX path operations.
Signature
declare const layerPosix: Layer.Layer<Path.Path>layerWin32
Added in v4.0.0
Source
A layer that provides Windows path operations.
Signature
declare const layerWin32: Layer.Layer<Path.Path>