mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
Doc changes
This commit is contained in:
14
doc/source/netscript/basicfunctions/getHostname.rst
Normal file
14
doc/source/netscript/basicfunctions/getHostname.rst
Normal file
@@ -0,0 +1,14 @@
|
||||
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())
|
||||
Reference in New Issue
Block a user