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

14 lines
288 B
ReStructuredText
Raw Normal View History

2023-01-30 19:51:00 +01:00
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())