anybitwise
v0.1.0
Published
A BigInt based bitwise oriented utility
Downloads
3
Maintainers
Readme
anybitwise
This module makes you forget about bitwise limitations by using BigInt instead.
The amount of bitwise operations is theoretically without upper bound limits so that way more than 32 variables become possible.
// grab the utility creator
import bigwise from 'anybitwise';
// create a 0n to Xn bits per each invoke
const next = bigwise();
const A = next();
const B = next();
const C = A | B;
A & B; // falsy
A & C; // truthy
That's it.