mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-30 09:57:32 +01:00
40 lines
637 B
Markdown
40 lines
637 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [hasTorRouter](./bitburner.ns.hastorrouter.md)
|
||
|
|
||
|
## NS.hasTorRouter() method
|
||
|
|
||
|
Returns whether the player has access to the darkweb.
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
hasTorRouter(): boolean;
|
||
|
```
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
boolean
|
||
|
|
||
|
Whether player has access to the dark web.
|
||
|
|
||
|
## Remarks
|
||
|
|
||
|
RAM cost: 0.05GB
|
||
|
|
||
|
## Example 1
|
||
|
|
||
|
|
||
|
```js
|
||
|
// NS1:
|
||
|
if (hasTorRouter()) tprint("TOR router detected.");
|
||
|
```
|
||
|
|
||
|
## Example 2
|
||
|
|
||
|
|
||
|
```js
|
||
|
// NS2:
|
||
|
if (ns.hasTorRouter()) tprint("TOR router detected.");
|
||
|
```
|
||
|
|