'use strict' ; import os = require ( 'os' ) ; export function isWindows ( ) { return os . platform ( ) . startsWith ( 'win' ) ; } export function isLinux ( ) { return os . platform ( ) . startsWith ( 'linux' ) ; } export function isMac ( ) { return os . platform ( ) . startsWith ( 'darwin' ) ; } export class UnexpectedPlatformError extends Error { constructor ( message ) { message = 'Unexpected Platform, current platform(' + os . platform ( ) + '):' + message ; super ( message ) ; } }