UNPKG

yahoo-finance2

Version:
32 lines (31 loc) 842 B
"use strict"; // Copyright 2018-2025 the Deno authors. MIT license. // This module is browser compatible. Object.defineProperty(exports, "__esModule", { value: true }); exports.format = format; const format_js_1 = require("../_common/format.js"); /** * Generate a path from `ParsedPath` object. * * @example Usage * ```ts * import { format } from "@std/path/windows/format"; * import { assertEquals } from "@std/assert"; * * const path = format({ * root: "C:\\", * dir: "C:\\path\\dir", * base: "file.txt", * ext: ".txt", * name: "file" * }); * assertEquals(path, "C:\\path\\dir\\file.txt"); * ``` * * @param pathObject The path object to format. * @returns The formatted path. */ function format(pathObject) { (0, format_js_1.assertArg)(pathObject); return (0, format_js_1._format)("\\", pathObject); }