Callidon / bloom-filters

JS implementation of probabilistic data structures: Bloom Filter (and its derived), HyperLogLog, Count-Min Sketch, Top-K and MinHash
https://callidon.github.io/bloom-filters/
MIT License
378 stars 43 forks source link

Use the buffer npm package for browser compatibility #33

Closed matheus23 closed 3 years ago

matheus23 commented 3 years ago

When building webnative, we have to inject the Buffer class from the buffer library when building for node.

With this PR, that won't be necessary anymore. Instead, the bloom-filters library will just use the buffer library. In node, it'll just expose the node-native Buffer class.

matheus23 commented 3 years ago

Wrong repository. Please ignore this :)