UNPKG

@oazmi/build-tools

Version:

general deno build tool scripts which I practically use in all of my typescript repos

15 lines 431 B
/** * Return the directory path of a `path`. * * @example * ```ts * import { dirname } from "@std/path/dirname"; * * console.log(dirname("/home/user/Documents/")); // "/home/user" * console.log(dirname("/home/user/Documents/image.png")); // "/home/user/Documents" * ``` * * @param path - path to extract the directory from. */ export declare function dirname(path: string): string; //# sourceMappingURL=dirname.d.ts.map