Skip to content

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

string

Examples

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

Released under the MIT License