Skip to content
Not available in DartThis function is not part of the Dart package. The documentation below is for JavaScript and Python.

getCpu

Requires a Node.js runtime ('qsu/node')

This function returns the name of the CPU currently used by the system. Depending on the OS, the name may be incorrect or may not be retrievable.

Parameters

No required parameters

Returns

string

str

Examples

javascript
console.log(await getCpu()); // e.g. 'Apple M1'...
python
print(getCpu())  # e.g. 'Apple M1'...

Released under the MIT License