Skip to content

@loontail/minecraft-kit / DetectSystemInput

Type Alias: DetectSystemInput

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

Defined in: src/core/system.ts:18

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);

Properties

PropertyModifierTypeDefined in
arch?readonlyNodeJS.Architecturesrc/core/system.ts:20
osVersion?readonlystringsrc/core/system.ts:21
platform?readonlyNodeJS.Platformsrc/core/system.ts:19

MIT License