I figured it out. Replaced all the Node-js specific crypto references with webcrypto equivalents; along with Uint8Array for the Buffer usage. The code can now be run by node, deno, and bun.
I have to clean up the test code then I'll probably file a PR.
I figured it out. Replaced all the Node-js specific
crypto
references withwebcrypto
equivalents; along withUint8Array
for theBuffer
usage. The code can now be run bynode
,deno
, andbun
.I have to clean up the test code then I'll probably file a PR.