Function convertBuffersToUint8Arrays

  • Recursively traverses an object replacing any node.js Buffers with Uint8Arrays. This is mostly for the benefit of having a consistent behaviour when testing in node vs the browser.

    Type Parameters

    • T

    Parameters

    • obj: T

      Any input is valid

    Returns T

    The equivalent to the input with all buffers replaced.