@stryke/path
Version:
A package containing various utilities that expand the functionality of NodeJs's built-in `path` module
15 lines (14 loc) • 386 B
TypeScript
/**
* Get the workspace root path
*
* @param dir - A directory to start the search from
* @returns The workspace root path
*/
export declare const getWorkspaceRoot: (dir?: string) => string;
/**
* Get the project root path
*
* @param dir - A directory to start the search from
* @returns The project root path
*/
export declare const getProjectRoot: (dir?: string) => string;