UNPKG

abi.js

Version:

[![typescript-icon]][typescript-link] [![license-icon]][license-link] [![status-icon]][status-link] [![ci-icon]][ci-link] [![twitter-icon]][twitter-link]

24 lines (23 loc) 584 B
import type { ParsedPath } from "../types.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. */ export declare function format(pathObject: Partial<ParsedPath>): string;