@visulima/ansi
Version:
ANSI escape codes for some terminal swag.
15 lines (14 loc) • 550 B
text/typescript
/**
* Checks if the current environment is a browser-like environment.
* It specifically checks for the presence of `globalThis.window.document`.
*/
/**
* Indicates whether the code is running inside Apple's Terminal.app.
* This is true if not in a browser and the `TERM_PROGRAM` environment variable is "Apple_Terminal".
*/
export declare const isTerminalApp: boolean;
/**
* Indicates whether the current platform is Windows.
* This is true if not in a browser and `process.platform` is "win32".
*/
export declare const isWindows: boolean;