GitHub

API reference for path.

Path operations as a service (Effect's Path).

Programs that take the Path service instead of importing os.path can be run against another platform's rules (layer_posix, layer_win32) or a test double::

p = yield from Path()
config = p.join(home, ".config", "app.toml")

posix and win32 follow Node's path.posix and path.win32, as Effect does (join("/a", "/b") is "/a/b", dirname("/a/b/") is "/a", relative of a path to itself is ""), on any host.

Re-exports

Values

AttributeTypeDescription
posixPathService

POSIX rules (Node's path.posix).

win32PathService

Windows rules (Node's path.win32), the same on any host.

layer_posixLayer[Path]

Path with POSIX rules (posix), on any host.

layer_win32Layer[Path]

Path with Windows rules (win32), on any host.

layerLayer[Path]

The host's rules.

Classes