anybitwise

0.1.0 • Public • Published

anybitwise

build

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.

Package Sidebar

Install

npm i anybitwise

Weekly Downloads

14

Version

0.1.0

License

MIT

Unpacked Size

3.87 kB

Total Files

7

Last publish

Collaborators

  • webreflection