@utopia-utils/cli
Version:
Collection of common cli utils
32 lines • 1.03 kB
text/typescript
//#region src/constant.d.ts
/** The path to the node_modules cache directory. */
declare const CACHE_DIR: string;
//#endregion
//#region src/getGitCommitHash.d.ts
/**
* return the current commit hash
* @returns The git commit hash
*/
declare function getGitCommitHash(): string | undefined;
//#endregion
//#region src/isDirector.d.ts
declare function isDirector(path: string): Promise<boolean>;
//#endregion
//#region src/isFile.d.ts
/**
* It returns true if the path is a file, and false if it's not
* @param {string} path - The path to the file to check.
* @returns A boolean value.
*/
declare function isFile(path: string): Promise<boolean>;
//#endregion
//#region src/pathExists.d.ts
/**
* It returns true if the path exists, and false if it doesn't
* @param {string} path - The path to check.
* @returns A promise that resolves to a boolean.
*/
declare function pathExists(path: string): Promise<boolean>;
//#endregion
export { CACHE_DIR, getGitCommitHash, isDirector, isFile, pathExists };
//# sourceMappingURL=index.d.mts.map