# Events

### output

Emits when shell has an output.

```javascript
ps.on('output', data => {});
```

### err

Emits when shell has an error.

```javascript
ps.on('err', err => {});
```

### end

Emits when shell ends.

```javascript
ps.on('end', code => {});
```