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

    Parameters

    • contents: string | Iterable<any>

      Data to stream.

    • Optional options: ReadableOptions

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

    Returns Guarded<Readable>