'use strict' ; export enum Architecture { Unknown = 1 , x86 = 2 , x64 = 3 } export enum OSType { Unknown = 'Unknown' , Windows = 'Windows' , OSX = 'OSX' , Linux = 'Linux' } export function getOSType ( platform = process . platform ) { if ( /^win/ . test ( platform ) ) { return OSType . Windows ; } else if ( /^darwin/ . test ( platform ) ) { return OSType . OSX ; } else if ( /^linux/ . test ( platform ) ) { return OSType . Linux ; } else { return OSType . Unknown ; } }