@oazmi/build-tools
Version:
general deno build tool scripts which I practically use in all of my typescript repos
19 lines • 564 B
TypeScript
import type { ParsedPath } from "./_interface.js";
/**
* Return a `ParsedPath` object of the `path`. Use `format` to reverse the result.
*
* @example
* ```ts
* import { parse } from "@std/path";
*
* const parsedPathObj = parse("/path/to/dir/script.ts");
* parsedPathObj.root; // "/"
* parsedPathObj.dir; // "/path/to/dir"
* parsedPathObj.base; // "script.ts"
* parsedPathObj.ext; // ".ts"
* parsedPathObj.name; // "script"
* ```
* @param path to process
*/
export declare function parse(path: string): ParsedPath;
//# sourceMappingURL=parse.d.ts.map