Skip to content

@longmo-utils/node / isLinux

Function: isLinux()

ts
function isLinux(): boolean;

检查当前平台是否为 Linux

Returns

boolean

是否为 Linux

Example

ts
if (isLinux()) {
  console.log('Running on Linux')
}

Released under the MIT License.