Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
endless-bitset
Advanced tools
An endless and fast bitset with some nice methods.
This is a wrapper around mattkrick's fast-bitset that allows for unlimited sizes.
It uses big-integer to access the higher indexes (but should work with plain old JS numbers for smaller indexes).
With yarn:
yarn add endless-bitset
Or with npm:
npm install endless-bitset --save
It's supposed to re-implement all methods from fast-bitset (they are a good selection), but I did just the ones I needed so far.
Technically, I guess it's limited by your RAM, your spare processing time and your call stack. But should be sufficient for most purposes.
Currently implemented are these methods from the original API:
boolean
boolean
boolean
boolean
number
I also added this property:
integer
: returns the max length, exactly as specified in the constructorFor the complete documentation, visit fast-bitset's readme.
FAQs
Endless and fast BitSet implementation
We found that endless-bitset demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.