[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/prismarine](https://jsprismarine.dev/api/@jsprismarine/prismarine/index.md) / stats/StatsPlatform

# stats/StatsPlatform

## Interfaces

### StatsPlatform

Defined in: [packages/prismarine/src/stats/StatsPlatform.ts:7](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/stats/StatsPlatform.ts#L7)

The host the server runs on, as `node:os` describes it, the same for every provider. A provider
that needs another form maps these fields itself.

#### Properties

##### arch

> `readonly` **arch**: `string`

Defined in: [packages/prismarine/src/stats/StatsPlatform.ts:15](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/stats/StatsPlatform.ts#L15)

The CPU architecture, from `os.arch()`, such as `x64`.

##### coreCount

> `readonly` **coreCount**: `number`

Defined in: [packages/prismarine/src/stats/StatsPlatform.ts:17](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/stats/StatsPlatform.ts#L17)

The CPUs the process may use, from `os.availableParallelism()`.

##### memoryGb

> `readonly` **memoryGb**: `number`

Defined in: [packages/prismarine/src/stats/StatsPlatform.ts:19](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/stats/StatsPlatform.ts#L19)

The host's memory from `os.totalmem()`, rounded to whole gigabytes (1024³ bytes).

##### release

> `readonly` **release**: `string`

Defined in: [packages/prismarine/src/stats/StatsPlatform.ts:11](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/stats/StatsPlatform.ts#L11)

The kernel release, from `os.release()`, such as `6.1.0` or `23.5.0`.

##### type

> `readonly` **type**: `string`

Defined in: [packages/prismarine/src/stats/StatsPlatform.ts:9](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/stats/StatsPlatform.ts#L9)

The operating system name, from `os.type()`, such as `Linux`, `Darwin` or `Windows_NT`.

##### version

> `readonly` **version**: `string`

Defined in: [packages/prismarine/src/stats/StatsPlatform.ts:13](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/stats/StatsPlatform.ts#L13)

The kernel or product version, from `os.version()`, such as `Windows 11 Pro`.

## Functions

### readPlatform()

> **readPlatform**(): [`StatsPlatform`](#statsplatform)

Defined in: [packages/prismarine/src/stats/StatsPlatform.ts:28](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/stats/StatsPlatform.ts#L28)

Reads the host description from `node:os`.

#### Returns

[`StatsPlatform`](#statsplatform)

The current platform fields.
