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

getHostname

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

Retrieves the host name of the current device. This is usually the name of the system that was automatically set on the desktop or changed by the user.

Parameters

No required parameters

Returns

Promise<string>

str

Examples

javascript
console.log(await getHostname()); // e.g. 'My PC', 'DESKTOP-ABCDEFG'...
python
print(getHostname())  # e.g. 'My PC', 'DESKTOP-ABCDEFG'...

Released under the MIT License