GregBrimble/cf-workers-dashboard

View on GitHub
packages/server/src/utils/arrayBufferToHexString.ts

Summary

Maintainability
A
0 mins
Test Coverage
export const arrayBufferToHexString = (arrayBuffer: ArrayBuffer) =>
  [...new Uint8Array(arrayBuffer)]
    .map((b) => b.toString(16).padStart(2, "0"))
    .join("");