---
title: "Process"
source: "https://browserpod.io/docs/reference/Process"
---

# Process

A handle to a process running inside a Pod

A `Process` is a handle to a process running inside a [Pod](https://browserpod.io/docs/reference/BrowserPod.md). It is returned by [`run`](https://browserpod.io/docs/reference/BrowserPod/run.md).

`Process` is a thenable object: awaiting it resolves to the exit code of the process once it exits. If the process cannot be started or is killed by a signal, awaiting it throws an error instead.

```ts
class Process {}
```

## Creating a Process

```ts
const exitCode = await pod.run("node", ["script.js"], { terminal });
```
