powbigint
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

PowBigInt.js

NPM version NPM total downloads install size minified size

A simple utility library for calculating powers of big integers.

Install

$ npm i powbigint
# or
$ yarn add powbigint
# or
$ pnpm add powbigint

Usage

import { powBigInt } from 'powbigint';

powBigInt(BigInt(2), 64n);  // 18446744073709551616n
powBigInt(2n, 1000000n);    // 99006562292958...376n (301030 digits)

License

MIT

/powbigint/

    Package Sidebar

    Install

    npm i powbigint

    Weekly Downloads

    0

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    6.18 kB

    Total Files

    6

    Last publish

    Collaborators

    • phuritd