@oazmi/build-tools
Version:
general deno build tool scripts which I practically use in all of my typescript repos
17 lines • 472 B
TypeScript
/**
* Return the directory path of a `path`.
*
* @example Usage
* ```ts
* import { dirname } from "@std/path/windows/dirname";
* import { assertEquals } from "@std/assert/assert-equals";
*
* const dir = dirname("C:\\foo\\bar\\baz.ext");
* assertEquals(dir, "C:\\foo\\bar");
* ```
*
* @param path The path to get the directory from.
* @returns The directory path.
*/
export declare function dirname(path: string): string;
//# sourceMappingURL=dirname.d.ts.map