@oazmi/build-tools
Version:
general deno build tool scripts which I practically use in all of my typescript repos
12 lines (11 loc) • 370 B
JavaScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.
import { _format, assertArg } from "../_common/format.js";
/**
* Generate a path from `FormatInputPathObject` object.
* @param pathObject with path
*/
export function format(pathObject) {
assertArg(pathObject);
return _format("/", pathObject);
}