function · Browser and Node

# fromStream

Parses a stream. Never throws: anything it can't read becomes a problem.

`@toip-tools/eventlog` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/stream.ts#L75)

Import:

```ts
import { fromStream } from "@toip-tools/eventlog";
```

## Declaration

Signature:

```ts
fromStream(text: string): {
    messages: SignedMessage[];
    problems: Problem[];
};
```

### Parameters

- **`text` (required)**: `string`

### Returns

`{ messages: SignedMessage[]; problems: Problem[]; }`

## Returned object

The returned object exposes these properties and methods.

## Properties

- **`messages` (required)**: `SignedMessage[]`
- **`problems` (required)**: `Problem[]`

[Usage guide](https://toip.tools/toolkit/eventlog/#usage) · [Error handling](https://toip.tools/toolkit/eventlog/#errors) · [All exports](https://toip.tools/toolkit/eventlog/api/)

---

This is the Markdown version of https://toip.tools/toolkit/eventlog/api/fromStream/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
