Function guardedStreamFrom

  • Converts a string or array to a stream and applies an error guard so that it is Guarded.

    Parameters

    • contents: string | Iterable<unknown>

      Data to stream.

    • Optionaloptions: ReadableOptions

      Options to pass to the Readable constructor. See Readable.from.

    Returns Guarded<Readable>