Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

readStdin

import { readStdin } from "https://gitlab.com/soapbox-pub/strfry-policies/-/raw/develop/mod.ts";

Parse strfy messages from stdin. strfry may batch multiple messages at once.

@example
// Loop through strfry input messages
for await (const msg of readStdin()) {
  // handle `msg`
}
async function* readStdin(): AsyncGenerator<InputMessage>;
§
readStdin(): AsyncGenerator<InputMessage>
[src]

§Return Type

§
AsyncGenerator<InputMessage>
[src]