paulmillr / noble-hashes

Audited & minimal JS implementation of hash functions, MACs and KDFs.
https://paulmillr.com/noble
MIT License
573 stars 46 forks source link

Support deno #43

Closed paulmillr closed 1 year ago

paulmillr commented 1 year ago

src files have imports such as import {sha2} from './sha2.js'. JS files can't be imported in Deno. TS files can't be imported in node/browser.

Another thing is crypto import in crypto.ts. Should be replaced with node:crypto - but that's easy.

paulmillr commented 1 year ago

Actually supported through npm: specifier, see readme