bulb/config~ TorConfig

new TorConfig(torrcopt)

Create a valid torrc configuration file.

Parameters:
NameTypeAttributesDescription
torrcObject.<string, string><optional>

Tor configuration properties.

Members

content

Properties
NameTypeDescription
contentArray.<string>

Each line of the torrc that was created.

datadir

Properties
NameTypeDescription
datadirstring

Data directory tor will use.

Methods

toString() → {string}

Gets the torrc content as a string.

Returns:
Type: 
string

writeLocal() → {Array.<string>}

Writes the torrc locally to the module.

Returns:
Type: 
Array.<string>