@sap-cloud-sdk/util
Version:
SAP Cloud SDK for JavaScript general utilities
14 lines (13 loc) • 361 B
TypeScript
import type { PathLike } from 'fs';
/**
* @internal
*/
export declare function findProjectRoot(path: string, lastPath?: string): string;
/**
* Read a JSON file from the file system.
* @param path - The path to the JSON file.
* @returns An object parsed from the JSON file.
*/
export declare function readJSON(path: PathLike): {
[key: string]: any;
};