# process_list

List processes matching a pattern (or all if empty).

```rhai
process_list(pattern: &str) -> Array
```

## ProcessInfo Properties

- `.pid` - Process ID
- `.name` - Process name
- `.memory` - Memory usage
- `.cpu` - CPU usage

## Examples

```rhai
let procs = process_list("node");
for p in procs {
    print(`${p.pid}: ${p.name}`);
}
```

```rhai
let all = process_list("");
print(`${all.len()} processes running`);
```
