Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richeyphu/powbigint.js
A simple utility library for calculating powers of big integers
https://github.com/richeyphu/powbigint.js
bigint biginteger exponential javascript library math mathematics npm power typescript utility
Last synced: 13 days ago
JSON representation
A simple utility library for calculating powers of big integers
- Host: GitHub
- URL: https://github.com/richeyphu/powbigint.js
- Owner: richeyphu
- License: mit
- Created: 2022-12-19T21:01:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-09T08:45:15.000Z (almost 2 years ago)
- Last Synced: 2024-11-19T09:57:00.295Z (about 1 month ago)
- Topics: bigint, biginteger, exponential, javascript, library, math, mathematics, npm, power, typescript, utility
- Language: TypeScript
- Homepage: https://npm.im/powbigint
- Size: 626 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# PowBigInt.js
[![NPM version](https://img.shields.io/npm/v/powbigint.svg)](https://npmjs.com/package/powbigint)
[![NPM total downloads](https://img.shields.io/npm/dt/powbigint)](https://npmjs.org/package/powbigint)
[![install size](https://packagephobia.com/badge?p=powbigint)](https://packagephobia.com/result?p=powbigint)
[![minified size](https://img.shields.io/bundlephobia/min/powbigint)](https://bundlephobia.com/package/powbigint)A simple utility library for calculating powers of big integers.
## Install
```sh
$ npm i powbigint
# or
$ yarn add powbigint
# or
$ pnpm add powbigint
```## Usage
```js
import { powBigInt } from 'powbigint';powBigInt(BigInt(2), 64n); // 18446744073709551616n
powBigInt(2n, 1000000n); // 99006562292958...376n (301030 digits)
```## License
[MIT](LICENSE)