Skip to content

@longmo-utils/node / isWindows

Function: isWindows()

ts
function isWindows(): boolean;

检查当前平台是否为 Windows

Returns

boolean

是否为 Windows

Example

ts
if (isWindows()) {
  console.log('Running on Windows')
}

Released under the MIT License.