UNPKG

@deepguide-ai/dg

Version:

Self-testing CLI documentation tool that generates interactive terminal demos

18 lines 569 B
import { platform, arch } from 'os'; export function getPlatformInfo() { const plat = platform(); const architecture = arch(); // Validate platform if (plat !== 'darwin' && plat !== 'linux' && plat !== 'win32') { throw new Error(`Unsupported platform: ${plat}`); } // Validate architecture if (architecture !== 'x64' && architecture !== 'arm64') { throw new Error(`Unsupported architecture: ${architecture}`); } return { platform: plat, arch: architecture }; } //# sourceMappingURL=platform.js.map