JSPM

anybitwise

0.1.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q33145F
    • License MIT

    A BigInt based bitwise oriented utility

    Package Exports

    • anybitwise
    • anybitwise/package.json

    Readme

    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.