NARU API
    Preparing search index...

    Function packageResourceDigest

    • Hex SHA-256 of a transferred resource, for the digest its package declares. The bytes are copied because a bounded read hands back a view into a larger buffer, and digest would hash that whole buffer.

      Parameters

      • bytes: Uint8Array

      Returns Promise<string>