mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
ae15914efa
Unfortunately, I haven't used most of the specialty APIs yet, so I'm not intimately familiar with where their documentation might be wrong. I figured some fixes were better than no fixes, and I can always make more fixes later. Fixes #1023.
14 lines
281 B
ReStructuredText
14 lines
281 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"
|