New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@mrawdon/hll-native

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mrawdon/hll-native

A native implementation of HLL

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

#Another Native Bloom Filter Wrapper Wraps the libbf and libbloom libraries

  • https://github.com/mavam/libbf
  • https://github.com/jvirkki/libbloom
//1st argument is error rate second arg is expected # items
const filter = new bff(0.001, 100000);
console.log(filter.lookup("a"))//false
filter.add("a");
console.log(filter.lookup("a"))//true

Notes

Currently libbloom is enabled to swap implementations uncomment line 3 of bloom-napi.h The error rate may need to be flipped when swapping implementations libbf has a max_obj_size currently defined at 36

Keywords

bff

FAQs

Package last updated on 06 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts