---
sidebar_label: Process.waitForLineOutput
---

# Process.waitForLineOutput() method

### Signature

```typescript
class Process {
  waitForLineOutput(regex: RegExp, timeout?: number): Promise<string>;
}
```

## Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

regex

</td><td>

RegExp

</td><td>

</td></tr>
<tr><td>

timeout

</td><td>

number

</td><td>

_(Optional)_

</td></tr>
</tbody></table>
**Returns:**

Promise&lt;string&gt;
