mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-21 05:35:45 +01:00
31 lines
622 B
Markdown
31 lines
622 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [serverExists](./bitburner.ns.serverexists.md)
|
|
|
|
## NS.serverExists() method
|
|
|
|
Returns a boolean denoting whether or not the specified server exists.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
serverExists(host: string): boolean;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| host | string | Hostname of target server. |
|
|
|
|
**Returns:**
|
|
|
|
boolean
|
|
|
|
True if the specified server exists, and false otherwise.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0.1 GB
|
|
|