@oazmi/build-tools
Version:
general deno build tool scripts which I practically use in all of my typescript repos
17 lines • 532 B
TypeScript
/**
* Return the directory path of a `path`.
*
* @example Usage
* ```ts
* import { dirname } from "@std/path/posix/dirname";
* import { assertEquals } from "@std/assert/assert-equals";
*
* assertEquals(dirname("/home/user/Documents/"), "/home/user");
* assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents");
* ```
*
* @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