@oclif/core
Version:
base library for oclif CLIs
19 lines (18 loc) • 510 B
TypeScript
/**
* Call os.homedir() and return the result
*
* Wrapping this allows us to stub these in tests since os.homedir() is
* non-configurable and non-writable.
*
* @returns The user's home directory
*/
export declare function getHomeDir(): string;
/**
* Call os.platform() and return the result
*
* Wrapping this allows us to stub these in tests since os.platform() is
* non-configurable and non-writable.
*
* @returns The process' platform
*/
export declare function getPlatform(): NodeJS.Platform;