2022-11-20 18:07:22 +01:00
|
|
|
<!-- 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.
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-11-20 18:07:22 +01:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
hasTorRouter(): boolean;
|
|
|
|
```
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-11-20 18:07:22 +01:00
|
|
|
|
|
|
|
boolean
|
|
|
|
|
|
|
|
Whether player has access to the dark web.
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
RAM cost: 0.05GB
|
|
|
|
|
2023-04-28 20:19:30 +02:00
|
|
|
## Example
|
2022-11-20 18:07:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
```js
|
2023-04-28 20:19:30 +02:00
|
|
|
if (ns.hasTorRouter()) ns.tprint("TOR router detected.");
|
2022-11-20 18:07:22 +01:00
|
|
|
```
|
|
|
|
|