online-tools icon indicating copy to clipboard operation
online-tools copied to clipboard

Please, make js implementation for Blake3 in browsers

Open leonbakadorov opened this issue 1 year ago • 3 comments

So many years have passed since the release of Blake3, but there is still no implementation in JS for browsers. Or is there?

Can you add Blake3 to your collection?

leonbakadorov avatar Dec 10 '23 09:12 leonbakadorov

Added this feature. please try it.

emn178 avatar May 02 '24 01:05 emn178

Added this feature. please try it.

emn178,

I noticed that at the end of blake3.js there is jquery code - I expected execution in pure JS.

It’s also not entirely clear how to use this library in your own projects - could you show examples of connecting the library and available methods?

Thank you)

leonbakadorov avatar May 02 '24 15:05 leonbakadorov

I use this library https://github.com/rvgrinsven/blake3-js, but its distribution https://cdn.jsdelivr.net/npm/[email protected]/dist/main.min.js is not umd. I modified module.export to window.blake3, and it can be used in browser.

emn178 avatar May 03 '24 01:05 emn178

I split the code into two files. This file includes only blake3-js library: https://emn178.github.io/online-tools/js/blake3-js.min.js

emn178 avatar May 30 '24 13:05 emn178