Global

Members

(constant) logFile

Source:

(constant) logFile

Source:

(constant) logMode

Source:

Methods

copyAndRun(_script, _server, _threads, _target) → {Promise.<void>}

Copy and run script

Parameters:
Name Type Description
_script string

script to copy and run

_server string

server to copy script to and run on

_threads number

number of threads of _script to run on _server

_target string

server for _script to target

Source:
Returns:
Type
Promise.<void>

main(ns) → {Promise.<void>}

Prints current share power using NS.getSharePower method.

Parameters:
Name Type Description
ns NS

Netscript namespace

Source:
Returns:
Type
Promise.<void>

main(ns, server) → {Promise.<void>}

Prints select server statistics to the terminal.

Prints hostname, maxRAM, cpuCores, serverGrowth, moneyMax, minDifficulty, hackDifficulty to the terminal. Calculates and prints the number of threads to get the current amount of money on the server.

Parameters:
Name Type Description
ns NS

Netscript namespace

server string

Server to print stats of. Defaults to 'n00dles'

Source:
Returns:
Type
Promise.<void>

main(ns) → {Promise.<void>}

Runs single thread of the NS.share method.

Parameters:
Name Type Description
ns NS

Netscript namespace

Source:
Returns:
Type
Promise.<void>