mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-14 03:33:52 +01:00
15 lines
290 B
ReStructuredText
15 lines
290 B
ReStructuredText
getHostname() Netscript Function
|
|
================================
|
|
|
|
.. js:function:: getHostname()
|
|
|
|
:RAM cost: 0.05 GB
|
|
:returns: Hostname of the server this script is running on.
|
|
|
|
Example:
|
|
|
|
.. code-block:: javascript
|
|
|
|
getHostname(); // returns: "foodnstuff"
|
|
|