bit-prefix-len
Returns the bit prefix length of a buffer -- the number of consecutive 0s or 1s. This is useful for all sorts of crypto things.
> var bitPrefixLen = > 16> 0> 47> 8
Returns the bit prefix length of a buffer -- the number of consecutive 0s or 1s. This is useful for all sorts of crypto things.
> var bitPrefixLen = > 16> 0> 47> 8
npm i bit-prefix-len
1
0.2.0
MIT