get-os-info
Version:
This library allows you to get a correct OS name and version
10 lines (9 loc) • 354 B
TypeScript
import getLinuxInfo from './utils/get-linux-info';
import getWindowsInfo from './utils/get-windows-info';
import getMacInfo from './utils/get-mac-info';
export interface OSInfo {
name: string;
version: string;
}
export default function getOSInfo(): Promise<OSInfo | null>;
export { getMacInfo, getWindowsInfo, getLinuxInfo, getOSInfo };