interface Path {
readonly [TypeId]: typeof TypeId;
readonly basename: (path: string, suffix?: string) => string;
readonly dirname: (path: string) => string;
readonly extname: (path: string) => string;
readonly format: (pathObject: Partial<Path.Parsed>) => string;
readonly fromFileUrl: (url: URL) => Effect<string, BadArgument>;
readonly isAbsolute: (path: string) => boolean;
readonly join: (...paths: readonly Array<string>) => string;
readonly normalize: (path: string) => string;
readonly parse: (path: string) => Parsed;
readonly relative: (from: string, to: string) => string;
readonly resolve: (...pathSegments: readonly Array<string>) => string;
readonly sep: string;
readonly toFileUrl: (path: string) => Effect<URL, BadArgument>;
readonly toNamespacedPath: (path: string) => string;
}
An implementation of the Path interface that can be used in all environments (including browsers).
It uses the POSIX standard for paths.