mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
14 lines
288 B
ReStructuredText
14 lines
288 B
ReStructuredText
getHostname() Netscript Function
|
|
==============================
|
|
|
|
.. js:function:: getHostname()
|
|
|
|
:RAM cost: 0.05 GB
|
|
|
|
Returns a string with the hostname of the server that the script is running on.
|
|
|
|
Examples:
|
|
|
|
.. code-block:: javascript
|
|
|
|
ns.tprint(ns.getHostname()) |