deno.land / std@0.224.0 / path / posix / format.ts

View Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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);}
std

Version Info

Tagged at
4 months ago