@vigilbase/cli
Version:
Vigilbase CLI — security scanners, agent tools, and Vigilbase One from the terminal.
10 lines (9 loc) • 395 B
JavaScript
/** The host platform. A function rather than a constant so tests can simulate Windows. */
export function platform() {
return process.platform;
}
/** Running in CI: `CI` set to anything but `0` or `false` (any case). */
export function isCi(env = process.env) {
const value = env.CI;
return value !== undefined && value !== '' && value !== '0' && value.toLowerCase() !== 'false';
}