pols-utils - v5.3.11
    Preparing search index...

    Function toReadableStream

    • Converts a string into a ReadableStream.

      Parameters

      • value: string

        The target string.

      • encoding: "utf-8" | "base64" = 'utf-8'

        The encoding format. Can be either 'base64' and 'utf-8'. Defaults to 'utf-8'.

      Returns Readable

      A ReadableStream representation of the string.