deno.land / std@0.224.0 / path / posix / format.ts
123456789101112131415// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.// This module is browser compatible.
import { _format, assertArg } from "../_common/format.ts";import type { FormatInputPathObject } from "../_interface.ts";
/** * Generate a path from `FormatInputPathObject` object. * @param pathObject with path */export function format(pathObject: FormatInputPathObject): string { assertArg(pathObject); return _format("/", pathObject);}
Version Info