Skip to content

@loontail/minecraft-kit v0.8.14 / DetectSystemInput

Type alias: DetectSystemInput

ts
type DetectSystemInput: {
  arch: NodeJS.Architecture;
  osVersion: string;
  platform: NodeJS.Platform;
};

Inputs allowing the host system to be derived from current Node values or overrides.

Example

ts
import { detectSystem, type DetectSystemInput } from "@loontail/minecraft-kit";

// Force the runtime resolver to treat the host as macOS ARM64 regardless of process.platform:
const input: DetectSystemInput = { platform: "darwin", arch: "arm64" };
const system = detectSystem(input);

Type declaration

MemberType
archNodeJS.Architecture
osVersionstring
platformNodeJS.Platform

Source

src/core/system.ts:18

MIT License