bitburner-src/doc/source/netscript/basicfunctions/getHostname.rst

14 lines
281 B
ReStructuredText
Raw Normal View History

getHostname() Netscript Function
================================
.. js:function:: getHostname()
:RAM cost: 0.05 GB
2021-03-12 08:51:56 +01:00
:returns: Hostname of the server this script is running on.
2021-03-12 08:51:56 +01:00
Example:
.. code-block:: javascript
getHostname(); // returns: "foodnstuff"